Top Description Constructors Methods
org.apache.commons.collections4

public Class TrieUtils

extends Object
Class Inheritance
Imports
org.apache.commons.collections4.trie.UnmodifiableTrie

A collection of Trie utilities.
Since
4.0

Constructor Summary

AccessConstructor and Description
private
TrieUtils()

TrieUtils should not normally be instantiated.

Method Summary

Modifier and TypeMethod and Description
public static <
the key type
K
,
the value type
V
>
Trie<K, V>

Returns:

an unmodifiable trie backed by the given trie
unmodifiableTrie
(final Trie<K, ? extends V>
the trie to make unmodifiable, must not be null
trie
)

Returns an unmodifiable instance of a Trie

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TrieUtilsback to summary
private TrieUtils()

TrieUtils should not normally be instantiated.

Method Detail

unmodifiableTrieback to summary
public static <K, V> Trie<K, V> unmodifiableTrie(final Trie<K, ? extends V> trie)

Returns an unmodifiable instance of a Trie

Parameters
<K>
the key type
<V>
the value type
trie:Trie<K, ? extends V>

the trie to make unmodifiable, must not be null

Returns:Trie<K, V>

an unmodifiable trie backed by the given trie

Exceptions
NullPointerException:
if trie is null
See Also
java.util.Collections#unmodifiableMap(java.util.Map)