Class Overview
Utility methods for dealing with WeakReference collections.
Summary
Public Methods |
static
<K, V>
ConcurrentMap<K, V>
|
concurrentKeys(int capacity, int concurrency)
|
static
<K, V>
ConcurrentMap<K, V>
|
concurrentKeys()
|
static
<K, V>
ConcurrentMap<K, V>
|
concurrentValues()
|
static
<K, V>
ConcurrentMap<K, V>
|
concurrentValues(int capacity, int concurrency)
|
static
<T>
Collection<T>
|
elements()
|
static
<T>
Collection<T>
|
elements(int capacity)
|
static
<K, V>
Map<K, V>
|
keys()
|
static
<K, V>
Map<K, V>
|
keys(int capacity)
|
static
<K, V>
Map<K, V>
|
values(int capacity)
|
static
<K, V>
Map<K, V>
|
values()
|
[Expand]
Inherited Methods |
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()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
static
ConcurrentMap<K, V>
concurrentKeys
(int capacity, int concurrency)
Parameters
capacity |
The initial capacity |
concurrency |
The concurrency level |
public
static
ConcurrentMap<K, V>
concurrentValues
(int capacity, int concurrency)
Parameters
capacity |
The initial capacity |
concurrency |
The concurrency level |
public
static
Collection<T>
elements
()
Returns
Collection
whose elements are kept alive with WeakReferences
public
static
Collection<T>
elements
(int capacity)
Parameters
capacity |
The initial capacity |
Returns
Collection
whose elements are kept alive with WeakReferences
public
static
Map<K, V>
keys
()
Returns
Map
whose keys are kept alive with WeakReferences
public
static
Map<K, V>
keys
(int capacity)
Parameters
capacity |
The initial capacity |
Returns
Map
whose keys are kept alive with WeakReferences
public
static
Map<K, V>
values
(int capacity)
Parameters
capacity |
The initial capacity |
Returns
Map
whose values are kept alive with WeakReferences
public
static
Map<K, V>
values
()
Returns
Map
whose values are kept alive with WeakReferences