public static class

WeakConcurrentMap.WithInlinedExpunction

extends WeakConcurrentMap<K, V>
java.lang.Object
   ↳ java.lang.ref.ReferenceQueue<T>
     ↳ com.pnfsoftware.jeb.util.concurrent.WeakConcurrentMap<K, V>
       ↳ com.pnfsoftware.jeb.util.concurrent.WeakConcurrentMap.WithInlinedExpunction<K, V>

Class Overview

A WeakConcurrentMap where stale entries are removed as a side effect of interacting with this map.

Summary

[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.util.concurrent.WeakConcurrentMap
Public Constructors
WithInlinedExpunction()
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
From class java.lang.Object
From interface java.lang.Iterable
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.