|
|||||||||
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(String param)
Indicates whether the map contains the specified key or not. |
String |
get(String param)
Returns the value associated with the specified key, or null if the key does not exist. |
Iterator<String> |
iterator()
Returns an iterator over the key set. |
Set<String> |
keySet()
Returns an unmodifiable set of keys. |
static void |
main(String[] args)
|
void |
put(String param,
String value)
Adds a key to the map with an associated value. |
String |
remove(String param)
Removes the value associated with the specified key. |
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(String param)
param
- The query key
param
. False otherwise.public String get(String param)
param
- The query key
param
, if it exists. Returns null otherwise.public String remove(String param)
param
- The query key
public void put(String param, String value)
value
.
param
- The key to addvalue
- The value associated with the keypublic Set<String> keySet()
public Iterator<String> iterator()
iterator
in interface Iterable<String>
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |