|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet
net.spy.util.ReferenceSet
net.spy.util.SoftHashSet
public class SoftHashSet
Implementation of ReferenceSet that uses soft references.
| Constructor Summary | |
|---|---|
SoftHashSet()
Get an instance of SoftHashSet. |
|
SoftHashSet(java.util.Collection c)
Get a SoftHashSet with the contents from the given Collection. |
|
SoftHashSet(int n)
Create a SoftHashSet with the given capacity. |
|
| Method Summary | |
|---|---|
protected java.lang.ref.Reference |
getReference(java.lang.Object o)
Return a soft reference. |
| Methods inherited from class net.spy.util.ReferenceSet |
|---|
add, iterator, size |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public SoftHashSet()
public SoftHashSet(int n)
n - the capacitypublic SoftHashSet(java.util.Collection c)
c - the collection| Method Detail |
|---|
protected java.lang.ref.Reference getReference(java.lang.Object o)
getReference in class ReferenceSeto - an object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||