Interface ShortAdvanceIterator

All Superinterfaces:
ShortIterator
All Known Implementing Classes:
SingletonContainer.ReverseIter

public interface ShortAdvanceIterator
extends ShortIterator
  • Method Summary

    Modifier and Type Method Description
    boolean advance​(int v)
    Advance the iterator position forward until the current value is smaller or equal to the argument, or the iterator is exhausted.
    short curr()  
    int currAsInt()  

    Methods inherited from interface com.illumon.iris.db.v2.utils.rsp.container.ShortIterator

    hasNext, next, nextAsInt
  • Method Details

    • curr

      short curr()
    • currAsInt

      int currAsInt()
    • advance

      boolean advance​(int v)

      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.

      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.