| Modifier and Type | Field and Description |
|---|---|
| private final @NotNull BitSet | |
| private int | |
| private int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | forEachRemaining(@NotNull Consumer<? super Integer>
The action to be performed for each element consumer)Overrides default java. Performs the given action for each remaining element until all elements have been processed or the action throws an exception. |
| public boolean | |
| public boolean | |
| public Integer | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| bitSet | back to summary |
|---|---|
| private final @NotNull BitSet bitSet
| |
| last | back to summary |
|---|---|
| private int last | |
| next | back to summary |
|---|---|
| private int next | |
| reversed | back to summary |
|---|---|
| private final boolean reversed | |
| BitSetIterator | back to summary |
|---|---|
| public BitSetIterator(@NotNull BitSet bitSet) | |
| BitSetIterator | back to summary |
|---|---|
| public BitSetIterator(@NotNull BitSet bitSet, boolean reversed) | |
| forEachRemaining | back to summary |
|---|---|
| public void forEachRemaining(@NotNull Consumer<? super Integer> consumer) Overrides default java. Doc from java. Performs the given action for each remaining element until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.
The behavior of an iterator is unspecified if the action modifies the
collection in any way (even by calling the Subsequent behavior of an iterator is unspecified if the action throws an exception. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| isReversed | back to summary |
|---|---|
| public boolean isReversed() Implements com.
| |
| next | back to summary |
|---|---|
| public Integer next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |