Get, Put
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the key type K, the value type V> IterableMap | Returns: IterableMapto wrap, must not be null get)Get the specified |
| public static < the key type K, the element type V> Map | Returns: Mapto wrap, must not be null put) |
| SplitMapUtils | back to summary |
|---|---|
| private SplitMapUtils()
| |
| readableMap | back to summary |
|---|---|
| public static <K, V> IterableMap Get the specified
| |
| writableMap | back to summary |
|---|---|
| public static <K, V> Map Get the specified
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. |
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(final Object
object to be compared for equality with this map arg0)Overrides java. Implements java. |
| public V | get(final Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public int | hashCode()
Overrides java. Implements java. |
| public boolean | isEmpty()
Implements java. true if this map contains no key-value mappings.
|
| public Set | keySet()
Implements java. Set view of the keys contained in this map.
|
| public MapIterator | mapIterator()
Implements org. MapIterator over the map.
|
| public V | put(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Implements java. |
| public void | putAll(final Map<? extends K, ? extends V>
mappings to be stored in this map t)Implements java. |
| public V | remove(final Object
key whose mapping is to be removed from the map key)Implements java. |
| public int | size()
Implements java. |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|
| get | back to summary |
|---|---|
| private final Get<K, V> get | |
| WrappedGet | back to summary |
|---|---|
| private WrappedGet(final Get<K, V> get) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object arg0) Overrides java. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| get | back to summary |
|---|---|
| public V get(final Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| mapIterator | back to summary |
|---|---|
| public MapIterator Implements org. Doc from org. Obtains a A map iterator is an efficient way of iterating over maps. There is no need to access the entry set or use Map Entry objects.
IterableMap<String,Integer> map = new HashedMap<String,Integer>();
MapIterator<String,Integer> it = map.mapIterator();
while (it.hasNext()) {
String key = it.next();
Integer value = it.getValue();
it.setValue(value + 1);
}
| |
| put | back to summary |
|---|---|
| public V put(final K key, final V value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(final Map<? extends K, ? extends V> t) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public V remove(final Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. |
| public boolean | containsKey(final Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(final Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public boolean | equals(final Object
object to be compared for equality with this map obj)Overrides java. Implements java. |
| public V | get(final Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public int | hashCode()
Overrides java. Implements java. |
| public boolean | |
| public Set | |
| public V | put(final K
key with which the specified value is to be associated key, final V value to be associated with the specified key value)Implements java. |
| public void | putAll(final Map<? extends K, ? extends V>
mappings to be stored in this map t)Implements java. |
| public V | remove(final Object
key whose mapping is to be removed from the map key)Implements java. |
| public int | |
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|
| put | back to summary |
|---|---|
| private final Put<K, V> put | |
| WrappedPut | back to summary |
|---|---|
| private WrappedPut(final Put<K, V> put) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(final Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(final Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| get | back to summary |
|---|---|
| public V get(final Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| put | back to summary |
|---|---|
| public V put(final K key, final V value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(final Map<? extends K, ? extends V> t) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public V remove(final Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |