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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
protected void
long
boolean
isEmpty()
keySet()
void
void
setDefaultTimeout
(long deftimeout) int
size()
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
-
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:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-