Interface ByteTrieNodeIfc<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getItem()
      Returns the user item stored in a terminal node (or null in an internal node).
      byte[] getValue()
      Returns a new byte array with the value of the byte sequence represented by this node (slow, built from scratch every time).
      boolean isTerminal()
      Returns whether this node represents a byte sequence in the trie or just an internal node on our way down to one.
      int length()
      Returns the length of the byte sequence represented by this node (cached integer, very fast).
    • Method Detail

      • isTerminal

        boolean isTerminal()
        Returns whether this node represents a byte sequence in the trie or just an internal node on our way down to one.
        Returns:
        whether this node represents a terminal value
      • getItem

        T getItem()
        Returns the user item stored in a terminal node (or null in an internal node).
        Returns:
        the user item
      • getValue

        byte[] getValue()
        Returns a new byte array with the value of the byte sequence represented by this node (slow, built from scratch every time).
        Returns:
        the byte sequence
      • length

        int length()
        Returns the length of the byte sequence represented by this node (cached integer, very fast).
        Returns:
        the length of the byte sequence