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>
A dummy map that ignores all
put/remove calls-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanstatic <K,V> IgnoringEmptyMap <K, V> inthashCode()booleanisEmpty()keySet()voidintsize()toString()values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IgnoringEmptyMap
public IgnoringEmptyMap()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
equals
-
hashCode
public int hashCode() -
toString
-
entrySet
-
getInstance
-