Package org.apache.sshd.common.util
Class IgnoringEmptyMap<K,V>
- java.lang.Object
-
- org.apache.sshd.common.util.IgnoringEmptyMap<K,V>
-
- Type Parameters:
K- Key typeV- Value type
- All Implemented Interfaces:
Map<K,V>
public class IgnoringEmptyMap<K,V> extends Object implements Map<K,V>
A dummy map that ignores allput/removecalls- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description IgnoringEmptyMap()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)Vget(Object key)static <K,V>
IgnoringEmptyMap<K,V>getInstance()inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)Vremove(Object key)intsize()StringtoString()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getInstance
public static <K,V> IgnoringEmptyMap<K,V> getInstance()
-
-