Interface PeekableCharRankIterator

All Superinterfaces:
CharIterator, Cloneable, PeekableCharIterator

public interface PeekableCharRankIterator extends PeekableCharIterator
PeekableCharIterator that calculates the next value rank during iteration
  • Method Details

    • peekNextRank

      int peekNextRank()
      peek in-container rank of the next value Uses integer because internal representation of rank is int and in-container rank lies in range 1-65536
      Returns:
      rank of the next value
    • clone

      Description copied from interface: PeekableCharIterator
      Creates a copy of the iterator.
      Specified by:
      clone in interface CharIterator
      Specified by:
      clone in interface PeekableCharIterator
      Returns:
      a clone of the current iterator