Class ByteTrieOfFew
- java.lang.Object
-
- ch.randelshofer.fastdoubleparser.bte.ByteTrieOfFew
-
-
Field Summary
Fields Modifier and Type Field Description private ByteTrieNoderoot
-
Constructor Summary
Constructors Constructor Description ByteTrieOfFew(java.util.Set<java.lang.String> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadd(java.lang.String str)intmatch(byte[] str, int startIndex, int endIndex)Searches for the longest matching string in the trie that matches the provided string.
-
-
-
Field Detail
-
root
private ByteTrieNode root
-
-
Method Detail
-
add
private void add(java.lang.String str)
-
match
public int match(byte[] str, int startIndex, int endIndex)Description copied from interface:ByteTrieSearches for the longest matching string in the trie that matches the provided string.
-
-