| Modifier and Type | Field and Description |
|---|---|
| public static final int[] | |
| private final @NotNull BitSet | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(@NotNull Integer
element to be added to this set item)Implements java. Adds the specified element to this set if it is not already present (optional operation). |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | addAll(@NotNull Collection<? extends Integer>
collection containing elements to be added to this set collection)Implements java. Adds all of the elements in the specified collection to this set if they're not already present (optional operation). |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitSet | |
| public int | |
| public int | |
| public int | |
| public void | clear()
Implements java. Removes all of the elements from this set (optional operation). |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public boolean | contains(@Nullable Object
element whose presence in this set is to be tested o)Implements java. Returns |
| public boolean | containsAll(@NotNull Collection<?>
collection to be checked for containment in this set collection)Implements java. Returns |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public void | forEach(@NotNull Consumer<? super Integer>
The action to be performed for each element consumer)Overrides default java. Performs the given action for each element of the |
| public void | |
| public boolean | |
| public @NotNull BitIntegerSet | |
| public boolean | |
| public boolean | |
| public boolean | |
| public @NotNull ReversibleIterator | iterator()
Implements java. Returns an iterator over the elements in this set. |
| public int | |
| public int | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public int | |
| public int | |
| public boolean | remove(@Nullable Object
object to be removed from this set, if present o)Implements java. Removes the specified element from this set if it is present (optional operation). |
| public boolean | removeAll(@NotNull Collection<?>
collection containing elements to be removed from this set collection)Implements java. Removes from this set all of its elements that are contained in the specified collection (optional operation). |
| public boolean | retainAll(@NotNull Collection<?>
collection containing elements to be retained in this set collection)Implements java. Retains only the elements in this set that are contained in the specified collection (optional operation). |
| public @NotNull ReversibleIterable | |
| public @NotNull ReversibleIterator | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public int | |
| public @NotNull Object[] | toArray()
Implements java. Returns an array containing all of the elements in this set. |
| public <T> T[] | toArray(T[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. array)Implements java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| public @NotNull int[] | toArray(@Nullable int[]
the array into which the elements of this set are to be
stored, if it is big enough; otherwise, a new array of the same
runtime type is allocated for this purpose. array)Implements java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. |
| public @NotNull int[] | |
| public @NotNull byte[] | |
| public @NotNull long[] | |
| public static @NotNull BitIntegerSet | |
| public static @NotNull BitIntegerSet | |
| public static @NotNull BitIntegerSet | |
| public static @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet | |
| public @NotNull BitIntegerSet |
| EMPTY_INT | back to summary |
|---|---|
| public static final int[] EMPTY_INT | |
| myBits | back to summary |
|---|---|
| private final @NotNull BitSet myBits
| |
| myReversed | back to summary |
|---|---|
| private final boolean myReversed | |
| BitIntegerSet | back to summary |
|---|---|
| public BitIntegerSet() | |
| BitIntegerSet | back to summary |
|---|---|
| public BitIntegerSet(int i) | |
| BitIntegerSet | back to summary |
|---|---|
| public BitIntegerSet(@NotNull BitSet other) | |
| BitIntegerSet | back to summary |
|---|---|
| public BitIntegerSet(@NotNull BitIntegerSet other) | |
| BitIntegerSet | back to summary |
|---|---|
| private BitIntegerSet(@NotNull BitIntegerSet other, boolean reversed) | |
| add | back to summary |
|---|---|
| public boolean add(@NotNull Integer item) Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int... collection) | |
| addAll | back to summary |
|---|---|
| public boolean addAll(@NotNull int[] collection, int startIndex) | |
| addAll | back to summary |
|---|---|
| public boolean addAll(@NotNull int[] collection, int startIndex, int endIndex) | |
| addAll | back to summary |
|---|---|
| public boolean addAll(@NotNull Collection<? extends Integer> collection) Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| and | back to summary |
|---|---|
public @NotNull BitIntegerSet and(@NotNull BitSet set)
| |
| and | back to summary |
|---|---|
public @NotNull BitIntegerSet and(@NotNull BitIntegerSet set)
| |
| andNot | back to summary |
|---|---|
public @NotNull BitIntegerSet andNot(@NotNull BitSet set)
| |
| andNot | back to summary |
|---|---|
public @NotNull BitIntegerSet andNot(@NotNull BitIntegerSet set)
| |
| bitSet | back to summary |
|---|---|
public @NotNull BitSet bitSet()
| |
| cardinality | back to summary |
|---|---|
| public int cardinality() | |
| cardinality | back to summary |
|---|---|
| public int cardinality(int start) | |
| cardinality | back to summary |
|---|---|
| public int cardinality(int start, int end) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| clear | back to summary |
|---|---|
public @NotNull BitIntegerSet clear(int i)
| |
| clear | back to summary |
|---|---|
public @NotNull BitIntegerSet clear(int i, int i1)
| |
| contains | back to summary |
|---|---|
| public boolean contains(@Nullable Object o) Implements java. Doc from java. Returns | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(@NotNull Collection<?> collection) Implements java. Doc from java. Returns
| |
| flip | back to summary |
|---|---|
public @NotNull BitIntegerSet flip(int i)
| |
| flip | back to summary |
|---|---|
public @NotNull BitIntegerSet flip(int i, int i1)
| |
| forEach | back to summary |
|---|---|
| public void forEach(@NotNull Consumer<? super Integer> consumer) Overrides default java. Doc from java. Performs the given action for each element of the The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy. | |
| forEach | back to summary |
|---|---|
| public void forEach(@NotNull IntConsumer consumer) | |
| get | back to summary |
|---|---|
| public boolean get(int i) | |
| get | back to summary |
|---|---|
public @NotNull BitIntegerSet get(int i, int i1)
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(BitSet set) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| isReversed | back to summary |
|---|---|
| public boolean isReversed() Implements com.
| |
| iterator | back to summary |
|---|---|
| public @NotNull ReversibleIterator Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| nextClearBit | back to summary |
|---|---|
| public int nextClearBit(int i) | |
| nextSetBit | back to summary |
|---|---|
| public int nextSetBit(int i) | |
| or | back to summary |
|---|---|
public @NotNull BitIntegerSet or(@NotNull BitSet set)
| |
| or | back to summary |
|---|---|
public @NotNull BitIntegerSet or(@NotNull BitIntegerSet set)
| |
| previousClearBit | back to summary |
|---|---|
| public int previousClearBit(int i) | |
| previousSetBit | back to summary |
|---|---|
| public int previousSetBit(int i) | |
| remove | back to summary |
|---|---|
| public boolean remove(@Nullable Object o) Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(@NotNull Collection<?> collection) Implements java. Doc from java. Removes from this set all of its elements that are contained in the specified collection (optional operation). If the specified collection is also a set, this operation effectively modifies this set so that its value is the asymmetric set difference of the two sets.
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(@NotNull Collection<?> collection) Implements java. Doc from java. Retains only the elements in this set that are contained in the specified collection (optional operation). In other words, removes from this set all of its elements that are not contained in the specified collection. If the specified collection is also a set, this operation effectively modifies this set so that its value is the intersection of the two sets.
| |
| reversed | back to summary |
|---|---|
| public @NotNull ReversibleIterable Implements com. | |
| reversedIterator | back to summary |
|---|---|
| public @NotNull ReversibleIterator Implements com. | |
| set | back to summary |
|---|---|
public @NotNull BitIntegerSet set(int i)
| |
| set | back to summary |
|---|---|
public @NotNull BitIntegerSet set(int i, boolean b)
| |
| set | back to summary |
|---|---|
public @NotNull BitIntegerSet set(int i, int i1)
| |
| set | back to summary |
|---|---|
public @NotNull BitIntegerSet set(int i, int i1, boolean b)
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| toArray | back to summary |
|---|---|
| public @NotNull Object[] toArray() Implements java. Doc from java. Returns an array containing all of the elements in this set. If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. The returned array will be "safe" in that no references to it are maintained by this set. (In other words, this method must allocate a new array even if this set is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs. | |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] array) Implements java. Doc from java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. If the set fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this set. If this set fits in the specified array with room to spare
(i.e., the array has more elements than this set), the element in
the array immediately following the end of the set is set to
If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. Like the Suppose
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toArray | back to summary |
|---|---|
| public @NotNull int[] toArray(@Nullable int[] array) Implements java. Doc from java. Returns an array containing all of the elements in this set; the runtime type of the returned array is that of the specified array. If the set fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this set. If this set fits in the specified array with room to spare
(i.e., the array has more elements than this set), the element in
the array immediately following the end of the set is set to
If this set makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order. Like the Suppose
String[] y = x.toArray(new String[0]);
Note that toArray(new Object[0]) is identical in function to
toArray().
| |
| toArray | back to summary |
|---|---|
public @NotNull int[] toArray(@Nullable int[] array, int destinationIndex)
| |
| toByteArray | back to summary |
|---|---|
public @NotNull byte[] toByteArray()
| |
| toLongArray | back to summary |
|---|---|
public @NotNull long[] toLongArray()
| |
| valueOf | back to summary |
|---|---|
public static @NotNull BitIntegerSet valueOf(@NotNull long[] longs)
| |
| valueOf | back to summary |
|---|---|
public static @NotNull BitIntegerSet valueOf(@NotNull LongBuffer buffer)
| |
| valueOf | back to summary |
|---|---|
public static @NotNull BitIntegerSet valueOf(@NotNull byte[] bytes)
| |
| valueOf | back to summary |
|---|---|
public static @NotNull BitIntegerSet valueOf(@NotNull ByteBuffer buffer)
| |
| xor | back to summary |
|---|---|
public @NotNull BitIntegerSet xor(@NotNull BitSet set)
| |
| xor | back to summary |
|---|---|
public @NotNull BitIntegerSet xor(@NotNull BitIntegerSet set)
| |