org.gridgain.grid.lang.utils
Class GridLeanSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.gridgain.grid.lang.utils.GridSerializableSet<E>
org.gridgain.grid.lang.utils.GridSetWrapper<E>
org.gridgain.grid.lang.utils.GridLeanSet<E>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>
public class GridLeanSet<E>
- extends GridSetWrapper<E>
- implements Cloneable
Lean set implementation. Internally this set is based on GridLeanMap
documentation. See GridLeanMap for more information.
- See Also:
- Serialized Form
-

|
Constructor Summary |
GridLeanSet()
Creates a new, empty set with a default initial capacity,
load factor, and concurrencyLevel. |
GridLeanSet(Collection<E> c)
Creates a new set with the same elements as the given collection. |
GridLeanSet(int size)
Constructs lean set with initial size. |
| Methods inherited from class org.gridgain.grid.lang.utils.GridSetWrapper |
add, clear, contains, defaultValue, isEmpty, iterator, map, remove, size, toArray, toArray |
GridLeanSet
public GridLeanSet()
- Creates a new, empty set with a default initial capacity,
load factor, and concurrencyLevel.
GridLeanSet
public GridLeanSet(int size)
- Constructs lean set with initial size.
- Parameters:
size - Initial size.
GridLeanSet
public GridLeanSet(Collection<E> c)
- Creates a new set with the same elements as the given collection. The
collection is created with a capacity of twice the number of mappings in
the given map or 11 (whichever is greater), and a default load factor
and concurrencyLevel.
- Parameters:
c - Collection to add.
clone
public Object clone()
-
- Overrides:
clone in class Object
toString
public String toString()
-
- Overrides:
toString in class GridSetWrapper<E>