Package jadex.collection
Class PassiveLeaseTimeMap<K,V>
java.lang.Object
jadex.collection.PassiveLeaseTimeMap<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()protected voidlongbooleanisEmpty()keySet()voidvoidsetDefaultTimeout(long deftimeout) intsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
times
-
entries
-
deftimeout
protected long deftimeout
-
-
Constructor Details
-
PassiveLeaseTimeMap
public PassiveLeaseTimeMap() -
PassiveLeaseTimeMap
public PassiveLeaseTimeMap(long deftimeout)
-
-
Method Details
-
getDefaultTimeout
public long getDefaultTimeout() -
setDefaultTimeout
public void setDefaultTimeout(long deftimeout) -
expungeStaleEntries
protected void expungeStaleEntries() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-