Class Overview
A WeakConcurrentMap
where stale entries are removed as a side effect of interacting
with this map.
Summary
Public Methods |
int
|
approximateSize()
Returns the approximate size of this map where the returned number is at least as big as the
actual number of entries.
|
boolean
|
containsKey(K key)
|
V
|
get(K key)
|
Iterator<Entry<K, V>>
|
iterator()
|
V
|
put(K key, V value)
|
V
|
remove(K key)
|
[Expand]
Inherited Methods |
From class
com.pnfsoftware.jeb.util.concurrent.WeakConcurrentMap
|
From class
java.lang.ref.ReferenceQueue
Reference<? extends T>
|
poll()
|
Reference<? extends T>
|
remove(long arg0)
|
Reference<? extends T>
|
remove()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.lang.Iterable
abstract
void
|
forEach(Consumer<? super T> arg0)
|
abstract
Iterator<T>
|
iterator()
|
abstract
Spliterator<T>
|
spliterator()
|
|
From interface
java.lang.Runnable
|
Public Constructors
public
WithInlinedExpunction
()
Public Methods
public
int
approximateSize
()
Returns the approximate size of this map where the returned number is at least as big as the
actual number of entries.
Returns
- The minimum size of this map.
public
boolean
containsKey
(K key)
Parameters
key |
The key of the entry. |
Returns
true
if the key already defines a value.
public
V
get
(K key)
Parameters
key |
The key of the entry. |
Returns
- The value of the entry or the default value if it did not exist.
public
Iterator<Entry<K, V>>
iterator
()
public
V
put
(K key, V value)
Parameters
key |
The key of the entry. |
value |
The value of the entry. |
Returns
- The previous entry or
null
if it does not exist.
public
V
remove
(K key)
Parameters
key |
The key of the entry. |
Returns
- The removed entry or
null
if it does not exist.