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 privateWrappedPut(Put<K,V> put)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()booleanequals(java.lang.Object obj)Vget(java.lang.Object key)inthashCode()booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)Note that the return type is Object, rather than V as in the Map interface.voidputAll(java.util.Map<? extends K,? extends V> t)Vremove(java.lang.Object key)intsize()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:PutNote that the return type is Object, rather than V as in the Map interface. See the class Javadoc for further info.- Specified by:
putin interfacejava.util.Map<K,V>- Specified by:
putin 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, ornullif there was no mapping forkey. (Anullreturn can also indicate that the map previously associatednullwithkey, if the implementation supportsnullvalues.) - See Also:
Map.put(Object, Object)
-
-