Class KoreanTokenizer.WrappedPositionArray

  • Enclosing class:
    KoreanTokenizer

    static final class KoreanTokenizer.WrappedPositionArray
    extends java.lang.Object
    • Field Detail

      • nextWrite

        private int nextWrite
      • nextPos

        private int nextPos
      • count

        private int count
    • Constructor Detail

      • WrappedPositionArray

        public WrappedPositionArray()
    • Method Detail

      • reset

        public void reset()
      • get

        public KoreanTokenizer.Position get​(int pos)
        Get Position instance for this absolute position; this is allowed to be arbitrarily far "in the future" but cannot be before the last freeBefore.
      • getNextPos

        public int getNextPos()
      • inBounds

        private boolean inBounds​(int pos)
      • getIndex

        private int getIndex​(int pos)
      • freeBefore

        public void freeBefore​(int pos)