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/remove
calls- 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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,V>>
entrySet()
boolean
equals(Object o)
V
get(Object key)
static <K,V>
IgnoringEmptyMap<K,V>getInstance()
int
hashCode()
boolean
isEmpty()
Set<K>
keySet()
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
remove(Object key)
int
size()
String
toString()
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:
containsValue
in interfaceMap<K,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<K,V>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getInstance
public static <K,V> IgnoringEmptyMap<K,V> getInstance()
-
-