Package com.drew.lang
Class ByteTrie<T>
java.lang.Object
com.drew.lang.ByteTrie<T>
- Type Parameters:
T- the type of value to store for byte sequences
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Stores values using a prefix tree (aka 'trie', i.e. reTRIEval data structure).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Store the given value at the specified path.find(byte[] bytes) Deprecated.Return the most specific value stored for this byte sequence.find(byte[] bytes, int offset, int count) Deprecated.Return the most specific value stored for this byte sequence.intDeprecated.Gets the maximum depth stored in this trie.voidsetDefaultValue(T defaultValue) Deprecated.Sets the default value to use infind(byte[])when no path matches.
-
Constructor Details
-
ByteTrie
public ByteTrie()Deprecated.
-
-
Method Details
-
find
Deprecated.Return the most specific value stored for this byte sequence. If not found, returnsnullor a default values as specified by callingsetDefaultValue(T). -
find
Deprecated.Return the most specific value stored for this byte sequence. If not found, returnsnullor a default values as specified by callingsetDefaultValue(T). -
addPath
Deprecated.Store the given value at the specified path. -
setDefaultValue
Deprecated.Sets the default value to use infind(byte[])when no path matches. -
getMaxDepth
public int getMaxDepth()Deprecated.Gets the maximum depth stored in this trie.
-