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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
static <K,
V> IgnoringEmptyMap<K, V> int
hashCode()
boolean
isEmpty()
keySet()
void
int
size()
toString()
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
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IgnoringEmptyMap
public IgnoringEmptyMap()
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
equals
-
hashCode
public int hashCode() -
toString
-
entrySet
-
getInstance
-