Package org.javlo.utils
Class NeverEmptyMap<K,V>
- java.lang.Object
-
- org.javlo.utils.NeverEmptyMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description NeverEmptyMap(Class defaultInstance)
set the default time of the attribute live in secondNeverEmptyMap(Class clazzKey, Class defaultInstance)
set the default time of the attribute live in secondNeverEmptyMap(Map<K,V> internalMap)
NeverEmptyMap(Map<K,V> internalMap, int inDefaultTimeLiveValueSecond)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object arg0)
boolean
containsValue(Object arg0)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object inKey)
boolean
isEmpty()
Set<K>
keySet()
static void
main(String[] args)
V
put(K inKey, V value)
void
putAll(Map<? extends K,? extends V> m)
V
remove(Object key)
int
size()
Collection<V>
values()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object arg0)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object arg0)
- Specified by:
containsValue
in interfaceMap<K,V>
-
main
public static void main(String[] args)
-
-