Class BytesTrie.Iterator

    • Method Detail

      • reset

        public BytesTrie.Iterator reset()
        Resets this iterator to its initial state.
        Returns:
        this
      • next

        public BytesTrie.Entry next()
        Finds the next (byte sequence, value) pair if there is one. If the byte sequence is truncated to the maximum length and does not have a real value, then the value is set to -1. In this case, this "not a real value" is indistinguishable from a real value of -1.
        Specified by:
        next in interface Iterator<BytesTrie.Entry>
        Returns:
        An Entry with the string and value of the next element.
        Throws:
        NoSuchElementException - - iteration has no more elements.