Constructor and Description |
---|
StringToIntMap()
Constructor.
|
public StringToIntMap()
Object.Object()
public boolean containsKey(String key)
key
- The string to be looked up.true
if a value is defined for this string; false
else.Map.containsKey(java.lang.Object)
public int get(String key)
key
- The string to be looked up.key
, or 0
if key
is not
a key in the map. Use containsKey()
to find out if
key
is actually defined in the map.public int put(String key, int value)
key
- The string key.value
- The int value.key
, if it was set. 0
else.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.