GridGain™ 4.3.1e
Enterprise "Big Data" Edition

org.gridgain.grid.lang.utils
Class GridLeanSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by org.gridgain.grid.lang.utils.GridSerializableSet<E>
              extended by org.gridgain.grid.lang.utils.GridSetWrapper<E>
                  extended by 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
 

Field Summary
 
Fields inherited from class org.gridgain.grid.lang.utils.GridSetWrapper
map, VAL
 
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.
 
Method Summary
 Object clone()
          
 String toString()
          
 
Methods inherited from class org.gridgain.grid.lang.utils.GridSetWrapper
add, clear, contains, defaultValue, isEmpty, iterator, map, remove, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, retainAll
 

Constructor Detail

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.
Method Detail

clone

public Object clone()

Overrides:
clone in class Object

toString

public String toString()

Overrides:
toString in class GridSetWrapper<E>

GridGain™ 4.3.1e
Enterprise "Big Data" Edition

GridGain - In-Memory Big Data
Enterprise "Big Data" Edition, ver. 4.3.1e.10112012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Join GridGain User Group Follow GridGain on Twitter Follow GridGain on Vimeo