Class TrieUtils


  • public class TrieUtils
    extends java.lang.Object
    A collection of Trie utilities.
    Since:
    4.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <K,​V>
      Trie<K,​V>
      unmodifiableTrie​(Trie<K,​? extends V> trie)
      Returns an unmodifiable instance of a Trie
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • unmodifiableTrie

        public static <K,​V> Trie<K,​V> unmodifiableTrie​(Trie<K,​? extends V> trie)
        Returns an unmodifiable instance of a Trie
        Type Parameters:
        K - the key type
        V - the value type
        Parameters:
        trie - the trie to make unmodifiable, must not be null
        Returns:
        an unmodifiable trie backed by the given trie
        Throws:
        java.lang.NullPointerException - if trie is null
        See Also:
        Collections.unmodifiableMap(java.util.Map)