public class FastSet<E> extends FastCollection<E> implements Set<E>
 A high-performance hash set with real-time behavior.
 The iteration order over the set elements is deterministic 
     (unlike HashSet).It is either the insertion order (default) 
     or the key order for the FastSortedSet subclass.
     This class permits null elements.
FastCollection.Format| Modifier | Constructor and Description | 
|---|---|
  | 
FastSet()
Creates an empty set backed up by a  
FastMap and having  
 the same real-time characteristics. | 
  | 
FastSet(Equality<? super E> comparator)
Creates an empty set backed up by a  
FastMap and using the 
 specified comparator for key equality. | 
protected  | 
FastSet(SetService<E> service)
Creates a fast set backed up by the specified service implementation. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FastSet<E> | 
addAll(E... elements)
Returns this collection with the specified element added. 
 | 
FastSet<E> | 
addAll(FastCollection<? extends E> that)
Returns this collection with the specified collection's elements added
 in sequence. 
 | 
FastSet<E> | 
atomic()
Returns an atomic view over this collection. 
 | 
void | 
clear()
Removes all elements from this collection. 
 | 
boolean | 
contains(Object obj)
Indicates if this collection contains the specified element. 
 | 
FastSet<E> | 
filtered(Predicate<? super E> filter)
Returns a view exposing only the elements matching the specified 
 filter. 
 | 
boolean | 
isEmpty()
Indicates if this collection is empty. 
 | 
boolean | 
remove(Object obj)
Removes the specified element from this collection. 
 | 
protected SetService<E> | 
service()
Returns the service implementation of this collection (for sub-classes). 
 | 
FastSet<E> | 
shared()
Returns a thread-safe view over this collection. 
 | 
int | 
size()
Returns the size of this collection. 
 | 
FastSet<E> | 
unmodifiable()
Returns an unmodifiable view over this collection. 
 | 
add, addAll, any, comparator, containsAll, distinct, equals, forEach, hashCode, iterator, mapped, max, min, parallel, perform, reduce, removeAll, removeIf, retainAll, reversed, sequential, serviceOf, sorted, sorted, toArray, toArray, toImmutable, toString, updatepublic FastSet()
FastMap and having  
 the same real-time characteristics.public FastSet(Equality<? super E> comparator)
FastMap and using the 
 specified comparator for key equality.protected FastSet(SetService<E> service)
public FastSet<E> atomic()
FastCollectionConcurrentModificationException possible).atomic in class FastCollection<E>public FastSet<E> filtered(Predicate<? super E> filter)
FastCollectionfiltered in class FastCollection<E>public FastSet<E> shared()
FastCollectionConcurrentModificationException possible).shared in class FastCollection<E>public FastSet<E> unmodifiable()
FastCollectionUnsupportedOperationException being raised.unmodifiable in class FastCollection<E>@Realtime(limit=CONSTANT) public boolean isEmpty()
FastCollectionisEmpty in interface Collection<E>isEmpty in interface Set<E>isEmpty in class FastCollection<E>@Realtime(limit=CONSTANT) public int size()
FastCollectionsize in interface Collection<E>size in interface Set<E>size in class FastCollection<E>@Realtime(limit=CONSTANT) public void clear()
FastCollectionclear in interface Collection<E>clear in interface Set<E>clear in class FastCollection<E>@Realtime(limit=CONSTANT) public boolean contains(Object obj)
FastCollectioncontains in interface Collection<E>contains in interface Set<E>contains in class FastCollection<E>@Realtime(limit=CONSTANT) public boolean remove(Object obj)
FastCollectionremove in interface Collection<E>remove in interface Set<E>remove in class FastCollection<E>public FastSet<E> addAll(E... elements)
FastCollectionaddAll in class FastCollection<E>elements - the elements to be added.thispublic FastSet<E> addAll(FastCollection<? extends E> that)
FastCollectionaddAll in class FastCollection<E>protected SetService<E> service()
FastCollectionservice in class FastCollection<E>Copyright © 2005-2013 Javolution. All Rights Reserved.