public class StringLookupMap<V> extends Object implements SimpleMap<V>
| Constructor and Description |
|---|
StringLookupMap() |
StringLookupMap(boolean isCaseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertValidGetKey(String key) |
protected static void |
assertValidKey(String key) |
protected static void |
assertValidPutKey(String key) |
V |
get(String key)
Returns the value to which this map maps the specified key.
|
V |
put(String key,
V value)
Associates the specified value with the specified key in this map.
|
int |
size()
Returns the number of key-value mappings in this map.
|
String |
toCorrectKeyCaseSensitivity(String key) |
public StringLookupMap()
public StringLookupMap(boolean isCaseSensitive)
public int size()
SimpleMapprotected static void assertValidKey(String key) throws NullPointerException, IllegalArgumentException
protected static void assertValidGetKey(String key) throws NullPointerException, IllegalArgumentException
protected static void assertValidPutKey(String key) throws NullPointerException, IllegalArgumentException
public V get(String key) throws IllegalArgumentException
SimpleMapget in interface SimpleMap<V>key - The key whose associated value is to be returned.IllegalArgumentException - Thrown if the key or value is not validpublic V put(String key, V value) throws IllegalArgumentException
SimpleMapput in interface SimpleMap<V>key - The key with which the specified value is to be associated.value - The value to be associated with the specified key.IllegalArgumentException - Thrown if the key or value is not validCopyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.