public interface AscendingLongIterator
long
values in ascending order.Modifier and Type | Field and Description |
---|---|
static AscendingLongIterator |
EMPTY
Denotes an empty ordered long iterator.
|
static long |
END
Identifies an iterator end.
|
Modifier and Type | Method and Description |
---|---|
long |
advance()
Advances this iterator to the next index.
|
long |
advanceAtLeastTo(long member)
Advances this iterator to the given member; or, if the member is not
present in this iterator, to an index immediately following it and
present in the iterator or
END if no such index exists. |
long |
getIndex()
Returns a value at which this iterator is positioned currently or
END if this iterator has reached its end. |
static final long END
Don't change this value, iteration logic relies on it being exactly -1L.
static final AscendingLongIterator EMPTY
long getIndex()
END
if this iterator has reached its end.
Just after the creation, iterators are positioned at their first value.
"Index" is used instead of "value" since SparseArray.Iterator
interface extends this interface with SparseArray.Iterator.getValue()
method.
long advance()
long advanceAtLeastTo(long member)
END
if no such index exists.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.