@Deprecated public class PrefixMap extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
depth
Deprecated.
The length of the longest string contained.
|
protected Multimap<Integer,String> |
length2prefix
Deprecated.
|
protected Multimap<String,String> |
prefix2full
Deprecated.
|
Constructor and Description |
---|
PrefixMap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
insert(String s)
Deprecated.
|
void |
insertAll(Collection<String> ss)
Deprecated.
|
String |
longestCommonPrefix()
Deprecated.
Returns the longest common prefix of all strings contained.
|
String |
longestCommonPrefix(String prePrefix)
Deprecated.
Returns the longest common prefix of all strings starting with a
certain prefix.
If the prefix is not conatained at all, a java new Error() is thrown. |
Set<String> |
prefixedBy(String s)
Deprecated.
Returns all contained strings which contain the argument as a prefix.
|
public void insertAll(Collection<String> ss)
public void insert(String s)
public Set<String> prefixedBy(String s)
public String longestCommonPrefix()
see also the complete user documentation .