Package org.apache.sis.util.collection
Class CodeListSet.Iter
java.lang.Object
org.apache.sis.util.collection.CodeListSet.Iter
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
- CodeListSet<E extends org.opengis.util.CodeList<E>>
The iterator returned by
CodeListSet.iterator()
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Ordinal value of the last element returned bynext()
, or -1 if none.private final BitSet
Initialized to a clone ofCodeListSet.supplementary
, then the bits are cleared as we progress in the iteration.private long
Initialized toCodeListSet.values
, then the bits are cleared as we progress in the iteration. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
remaining
private long remainingInitialized toCodeListSet.values
, then the bits are cleared as we progress in the iteration. This value become 0 when the iteration is done. -
more
Initialized to a clone ofCodeListSet.supplementary
, then the bits are cleared as we progress in the iteration. The bit set become empty when the iteration is done. -
last
private int lastOrdinal value of the last element returned bynext()
, or -1 if none.
-
-
Constructor Details
-
Iter
Iter(long values, BitSet supplementary) Creates a new iterator initialized to the given values.
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrue
if there is more elements to return. -
next
Returns the next element. -
remove
public void remove()Removes the last element returned by this iterator.
-