Class SingletonContainer.ReverseIter
java.lang.Object
io.deephaven.engine.rowset.impl.rsp.container.SingletonContainer.ReverseIter
- All Implemented Interfaces:
ShortAdvanceIterator
,ShortIterator
- Enclosing class:
- SingletonContainer
public static final class SingletonContainer.ReverseIter
extends Object
implements ShortAdvanceIterator
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.rowset.impl.rsp.container.ShortAdvanceIterator
curr, currAsInt
Methods inherited from interface io.deephaven.engine.rowset.impl.rsp.container.ShortIterator
hasNext, next, nextAsInt
-
Field Details
-
hasNext
protected boolean hasNext
-
-
Constructor Details
-
ReverseIter
public ReverseIter(short value)
-
-
Method Details
-
advance
public boolean advance(int v) Description copied from interface:ShortAdvanceIterator
Advance the iterator position forward until the current value is smaller or equal to the argument, or the iterator is exhausted.
If no satisfying position is found, false is returned, and any subsequent call to hasNext returns false, as the iterator has been exhausted, and the current position is undefined. Otherwise true is returned and the current position is updated.
- Specified by:
advance
in interfaceShortAdvanceIterator
- Parameters:
v
- a value to search for starting from the current iterator position, which must be a valid one on entry.- Returns:
- true if a value satisfying the constraints is found, false if the iterator was exhausted.
-
hasNext
public boolean hasNext() -
next
public short next() -
nextAsInt
public int nextAsInt() -
curr
public short curr() -
currAsInt
public int currAsInt() -
intValue
protected int intValue()
-