Package com.gengoai.collection.tree
Class TrieMatch<V>
- java.lang.Object
-
- com.gengoai.collection.tree.TrieMatch<V>
-
- Type Parameters:
V
- the type parameter
- All Implemented Interfaces:
Serializable
public class TrieMatch<V> extends Object implements Serializable
Represents a match in a Trie.
- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getMatch(String content)
Extracts the matched portion of a content.int
hashCode()
String
toString()
-
-
-
Field Detail
-
start
public final int start
The starting index.
-
end
public final int end
The ending index.
-
value
public final V value
The value of the matched key
-
-
Constructor Detail
-
TrieMatch
public TrieMatch(int start, int end, V value)
Instantiates a new Trie match.- Parameters:
start
- the startend
- the endvalue
- the value
-
-