public class BitLongSet extends LongSet.Base implements LongSortedSet
LongSortedSet backed by two SparseBitSets for positive and negative values.
This LongSortedSet covers all values between Long.MIN_VALUE and Long.MAX_VALUE inclusive.LongSortedSet.SubSetLongSet.Base| Constructor and Description |
|---|
BitLongSet() |
BitLongSet(long... xs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLong(long x) |
void |
clear() |
boolean |
containsLong(long x) |
boolean |
isEmpty() |
LongIterator |
iterator() |
boolean |
removeLong(long x) |
int |
size() |
equals, hashCodetoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparator, create, create, first, firstLong, headSet, headSet, last, lastLong, spliterator, subSet, subSet, tailSet, tailSetadd, addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayaddAllLongs, addAllLongs, removeIf, toLongArraycontainsAllLongs, containsAllLongs, containsAnyLongs, containsAnyLongs, forEach, forEachLong, from, from, longStream, of, once, once, parallelLongStream, removeAllLongs, removeAllLongs, removeLongsIf, retainAllLongs, retainAllLongs, sequencepublic int size()
size in interface java.util.Collection<java.lang.Long>size in interface java.util.Set<java.lang.Long>public LongIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Long>iterator in interface java.util.Collection<java.lang.Long>iterator in interface java.util.Set<java.lang.Long>iterator in interface LongIterablepublic boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Long>isEmpty in interface java.util.Set<java.lang.Long>isEmpty in interface LongCollectionisEmpty in interface LongIterableisEmpty in interface LongSetpublic void clear()
clear in interface java.util.Collection<java.lang.Long>clear in interface java.util.Set<java.lang.Long>clear in interface LongCollectionclear in interface LongIterableclear in interface LongSetpublic boolean addLong(long x)
addLong in interface LongCollectionpublic boolean removeLong(long x)
removeLong in interface LongIterablepublic boolean containsLong(long x)
containsLong in interface LongIterable