Class TrieUtils

java.lang.Object
org.apache.commons.collections4.TrieUtils

public class TrieUtils extends Object
A collection of Trie utilities.
Since:
4.0
  • Constructor Details

    • TrieUtils

      private TrieUtils()
      TrieUtils should not normally be instantiated.
  • Method Details

    • 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:
      NullPointerException - if trie is null
      See Also: