public interface TaggedStrings
This is an interface for wrapping various types of string lists. Some string lists have one or more different values for each string, while others have the same value for each string. The underlying implementation can be a map, an array, a trie, a properties list, etc.
Modifier and Type | Method and Description |
---|---|
boolean |
containsString(java.lang.String string)
See if specified string exists.
|
java.util.Set<java.lang.String> |
getAllStrings()
Get set of all unique string values.
|
java.util.Set<java.lang.String> |
getAllTags()
Get set of all unique tag values.
|
int |
getStringCount()
Get number of strings.
|
java.lang.String |
getTag(java.lang.String string)
Get the tag value associated with a string.
|
void |
putTag(java.lang.String string,
java.lang.String tag)
Set the tag value associated with a string.
|
boolean containsString(java.lang.String string)
string
- The string.java.lang.String getTag(java.lang.String string)
string
- The string.void putTag(java.lang.String string, java.lang.String tag)
string
- The string.tag
- The tag.int getStringCount()
java.util.Set<java.lang.String> getAllTags()
java.util.Set<java.lang.String> getAllStrings()