|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.international.process.StringMap
public class StringMap
A map from strings to strings that provides type-checking and limited access control.
Constructor Summary | |
---|---|
StringMap()
|
Method Summary | |
---|---|
boolean |
contains(java.lang.String param)
Indicates whether the map contains the specified key or not. |
java.lang.String |
get(java.lang.String param)
Returns the value associated with the specified key, or null if the key does not exist. |
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the key set. |
java.util.Set<java.lang.String> |
keySet()
Returns an unmodifiable set of keys. |
static void |
main(java.lang.String[] args)
|
void |
put(java.lang.String param,
java.lang.String value)
Adds a key to the map with an associated value. |
java.lang.String |
remove(java.lang.String param)
Removes the value associated with the specified key. |
java.util.Set<java.lang.String> |
values()
Set of the values in the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringMap()
Method Detail |
---|
public boolean contains(java.lang.String param)
param
- The query key
param
. False otherwise.public java.lang.String get(java.lang.String param)
param
- The query key
param
, if it exists. Returns null otherwise.public java.lang.String remove(java.lang.String param)
param
- The query key
public void put(java.lang.String param, java.lang.String value)
value
.
param
- The key to addvalue
- The value associated with the keypublic java.util.Set<java.lang.String> keySet()
public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
public java.util.Set<java.lang.String> values()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |