Package org.apache.commons.collections4
Class SplitMapUtils.WrappedPut<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.SplitMapUtils.WrappedPut<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
,Put<K,V>
- Enclosing class:
- SplitMapUtils
private static class SplitMapUtils.WrappedPut<K,V> extends java.lang.Object implements java.util.Map<K,V>, Put<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WrappedPut(Put<K,V> put)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object obj)
V
get(java.lang.Object key)
int
hashCode()
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
Note that the return type is Object, rather than V as in the Map interface.void
putAll(java.util.Map<? extends K,? extends V> t)
V
remove(java.lang.Object key)
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
clear
public void clear()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
put
public V put(K key, V value)
Description copied from interface:Put
Note that the return type is Object, rather than V as in the Map interface. See the class Javadoc for further info.- Specified by:
put
in interfacejava.util.Map<K,V>
- Specified by:
put
in interfacePut<K,V>
- Parameters:
key
- key with which the specified value is to be associatedvalue
- value to be associated with the specified key- Returns:
- the previous value associated with
key
, ornull
if there was no mapping forkey
. (Anull
return can also indicate that the map previously associatednull
withkey
, if the implementation supportsnull
values.) - See Also:
Map.put(Object, Object)
-
-