public void moveTo(int element) { context.wrap(element, cursorView); }
public void moveTo(int element) { context.wrap(element, cursorView); }
public void moveToResult(int index) { matchingPositions.wrap(index, currentResultView); }
public void moveToResult(int index) { matchingPositions.wrap(index, currentResultView); }
public void moveToLastElement() { context.wrap(context.size() - 1, cursorView); }
public void moveToLastElement() { context.wrap(context.size() - 1, cursorView); }
/** * Attach a view of the next element to a {@link MutableDirectBuffer} for providing direct access. * Always returns the same object, i.e. objects returned by previous {@link #next()} invocations * become invalid. * * @see CompactList#wrap(int, MutableDirectBuffer) * @see Iterator#next() */ public MutableDirectBuffer next() { if (position + 1 >= values.size()) { throw new java.util.NoSuchElementException(); } position++; values.wrap(position, current); return current; } }
/** * Attach a view of the next element to a {@link MutableDirectBuffer} for providing direct access. * Always returns the same object, i.e. objects returned by previous {@link #next()} invocations * become invalid. * * @see CompactList#wrap(int, MutableDirectBuffer) * @see Iterator#next() */ public MutableDirectBuffer next() { if (position + 1 >= values.size()) { throw new java.util.NoSuchElementException(); } position++; values.wrap(position, current); return current; } }
wrap(mid, elementBuffer); final int cmp = c.compare(elementBuffer, key);
wrap(mid, elementBuffer); final int cmp = c.compare(elementBuffer, key);