public final class WeakSoftTable extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
WeakSoftTable.RemovableReference
Implemented by classes to permit copying instances into reference queues
when they are added to the table and to remove them from the table when
the references are cleared.
|
static class |
WeakSoftTable.SoftValue
A value that maintains a soft reference to an object.
|
static class |
WeakSoftTable.WeakKey
A key that maintains a weak reference to an object which should be
compared by object identity.
|
Constructor and Description |
---|
WeakSoftTable()
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
add(WeakSoftTable.WeakKey key,
WeakSoftTable.SoftValue value)
Associates an additional value with the specified key.
|
WeakSoftTable.SoftValue |
get(WeakSoftTable.WeakKey key,
int index)
Returns the value associated with the specified key and index, or null
if not found.
|
WeakSoftTable.SoftValue |
remove(WeakSoftTable.WeakKey key,
int index)
Removes and returns the index'th value associated with the specified
key.
|
String |
toString()
Returns a string representation of this object.
|
public WeakSoftTable.SoftValue get(WeakSoftTable.WeakKey key, int index)
public void add(WeakSoftTable.WeakKey key, WeakSoftTable.SoftValue value)
public WeakSoftTable.SoftValue remove(WeakSoftTable.WeakKey key, int index)
Copyright © GigaSpaces.