| Modifier and Type | Field and Description |
|---|---|
protected org.agrona.concurrent.UnsafeBuffer |
current |
protected int |
position |
protected CompactList |
values |
| Constructor and Description |
|---|
CompactListIterator(CompactList values) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
org.agrona.MutableDirectBuffer |
next()
Attach a view of the next element to a
MutableDirectBuffer for providing direct access. |
int |
position()
Return the current position of the iterator.
|
void |
reset()
Reset the current position of iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removeprotected final CompactList values
protected final org.agrona.concurrent.UnsafeBuffer current
protected int position
public CompactListIterator(CompactList values)
public void reset()
public int position()
public boolean hasNext()
public org.agrona.MutableDirectBuffer next()
MutableDirectBuffer for providing direct access.
Always returns the same object, i.e. objects returned by previous next() invocations
become invalid.next in interface Iterator<org.agrona.MutableDirectBuffer>CompactList.wrap(int, MutableDirectBuffer),
Iterator.next()Copyright © 2017–2019 camunda services GmbH. All rights reserved.