public class BitIntSet extends IntSet.Base implements IntSortedSet
IntSortedSet backed by two SparseBitSets for positive and negative values.IntSortedSet.SubSetIntSet.Base| Modifier and Type | Method and Description |
|---|---|
boolean |
addInt(int x) |
void |
clear() |
boolean |
containsInt(int x) |
int |
firstInt() |
boolean |
isEmpty() |
IntIterator |
iterator() |
int |
lastInt() |
boolean |
removeInt(int x) |
int |
size() |
equals, hashCodetoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparator, create, create, first, headSet, headSet, last, spliterator, subSet, subSet, tailSet, tailSetadd, addAll, asChars, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayaddAllInts, addAllInts, removeIf, toIntArrayasInputStream, containsAllInts, containsAllInts, containsAnyInts, containsAnyInts, forEach, forEachInt, from, from, intStream, of, once, once, parallelIntStream, read, removeAllInts, removeAllInts, removeIntsIf, retainAllInts, retainAllInts, sequencepublic int size()
size in interface java.util.Collection<java.lang.Integer>size in interface java.util.Set<java.lang.Integer>public IntIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.util.Set<java.lang.Integer>iterator in interface IntIterablepublic boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Integer>isEmpty in interface java.util.Set<java.lang.Integer>isEmpty in interface IntCollectionisEmpty in interface IntIterableisEmpty in interface IntSetpublic void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in interface java.util.Set<java.lang.Integer>clear in interface IntCollectionclear in interface IntIterableclear in interface IntSetpublic boolean addInt(int x)
addInt in interface IntCollectionpublic boolean removeInt(int x)
removeInt in interface IntIterablepublic boolean containsInt(int x)
containsInt in interface IntIterablepublic int firstInt()
firstInt in interface IntSortedSetpublic int lastInt()
lastInt in interface IntSortedSet