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 voidclear()booleancontainsKey(Object arg0)booleancontainsValue(Object arg0)Set<Map.Entry<K,V>>entrySet()Vget(Object inKey)booleanisEmpty()Set<K>keySet()static voidmain(String[] args)Vput(K inKey, V value)voidputAll(Map<? extends K,? extends V> m)Vremove(Object key)intsize()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:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object arg0)
- Specified by:
containsValuein interfaceMap<K,V>
-
main
public static void main(String[] args)
-
-