public class TaggedStringsMap extends java.lang.Object implements TaggedStrings
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
wrappedMap
Map being wrapped.
|
Constructor and Description |
---|
TaggedStringsMap()
Create a tagged strings map.
|
TaggedStringsMap(java.util.Map<java.lang.String,java.lang.String> map)
Create a tagged strings map.
|
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getMap()
Return the wrapped map.
|
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.
|
protected java.util.Map<java.lang.String,java.lang.String> wrappedMap
public TaggedStringsMap()
public TaggedStringsMap(java.util.Map<java.lang.String,java.lang.String> map)
map
- The map to wrap.public boolean containsString(java.lang.String string)
containsString
in interface TaggedStrings
string
- The string.public java.lang.String getTag(java.lang.String string)
getTag
in interface TaggedStrings
string
- The string.public void putTag(java.lang.String string, java.lang.String tag)
putTag
in interface TaggedStrings
string
- The string.tag
- The tag.public int getStringCount()
getStringCount
in interface TaggedStrings
public java.util.Set<java.lang.String> getAllTags()
getAllTags
in interface TaggedStrings
public java.util.Set<java.lang.String> getAllStrings()
getAllStrings
in interface TaggedStrings
public java.util.Map<java.lang.String,java.lang.String> getMap()