PhantomReference that is strongly retained until it is reaped by the collection thread.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public | CleanerReference(final T
the referent referent, final A the attachment attachment, final Reaper<T, A> the reaper to use reaper)Construct a new instance with a reaper. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public final boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public final int |
| set | back to summary |
|---|---|
| private static final Set<CleanerReference<?, ?>> set | |
| CleanerReference | back to summary |
|---|---|
| public CleanerReference(final T referent, final A attachment, final Reaper<T, A> reaper) Construct a new instance with a reaper.
| |
| clean | back to summary |
|---|---|
| pack-priv void clean() | |
| equals | back to summary |
|---|---|
| public final boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |