|
||||||||||
| 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<T>
net.spy.util.ReferenceSet<T>
net.spy.util.SoftHashSet<T>
public class SoftHashSet<T>
Implementation of ReferenceSet that uses soft references.
| Constructor Summary | |
|---|---|
SoftHashSet()
Get an instance of SoftHashSet. |
|
SoftHashSet(java.util.Collection<T> 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<T> |
getReference(T 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<T> c)
c - the collection| Method Detail |
|---|
protected java.lang.ref.Reference<T> getReference(T o)
getReference in class ReferenceSet<T>o - an object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||