Interface IBmLongSet
- 
- All Known Implementing Classes:
- BmLongHashSet,- BmLongSegmentSyncSet
 
 public interface IBmLongSetA set of long values.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classIBmLongSet.EntryA set entry.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(long element)Adds the specified element.voidaddAll(long[] array)Adds all the values from the specified array.voidaddAll(IBmLongSet collection)Adds all the values from the specified collection.voidaddAll(Iterable<Long> collection)Adds all the values from the specified collection.voidclear()Removes all the elements.booleancontains(long element)Checks if the set contains the specified element.Iterable<IBmLongSet.Entry>entryIterator()Gets entry iterator.booleanisEmpty()Checks whether this set is empty.IBmLongIteratoriterator()Gets the long value iteratorCollection<Long>keys()Gets collection of elements.booleanremove(long element)Removes the specified element.intsize()Returns the number of elements in this set.
 
- 
- 
- 
Method Detail- 
addvoid add(long element) Adds the specified element.- Parameters:
- element- the element to add.
 
 - 
addAllvoid addAll(IBmLongSet collection) Adds all the values from the specified collection.- Parameters:
- collection- the collection of values to add.
 
 - 
addAllvoid addAll(Iterable<Long> collection) Adds all the values from the specified collection.- Parameters:
- collection- the collection of values to add.
 
 - 
addAllvoid addAll(long[] array) Adds all the values from the specified array.- Parameters:
- array- the array. May not be- null.
 
 - 
containsboolean contains(long element) Checks if the set contains the specified element.- Parameters:
- element- the element.
- Returns:
- trueif set contains the specified element,- falseotherwise.
 
 - 
entryIteratorIterable<IBmLongSet.Entry> entryIterator() Gets entry iterator.- Returns:
- an entry iterator.
 
 - 
iteratorIBmLongIterator iterator() Gets the long value iterator- Returns:
- The iterator of values. May not be null
 
 - 
isEmptyboolean isEmpty() Checks whether this set is empty.- Returns:
- trueif this set has no elements,- falseotherwise.
- See Also:
- size()
 
 - 
keysCollection<Long> keys() Gets collection of elements.- Returns:
- the collection of elements.
 
 - 
removeboolean remove(long element) Removes the specified element.- Parameters:
- element- the element to remove.
- Returns:
- trueif this set contained the specified element,- falseotherwise.
 
 - 
sizeint size() Returns the number of elements in this set.- Returns:
- the number of elements in this set.
 
 
- 
 
-