T
- type of objectpublic class TransparenteWeakReference<T> extends WeakReference<T>
Modifier and Type | Field and Description |
---|---|
protected int |
hash |
protected boolean |
objectToStringUsed |
protected String |
toString |
Constructor and Description |
---|
TransparenteWeakReference(T o) |
TransparenteWeakReference(T o,
boolean objectToStringUsed) |
TransparenteWeakReference(T o,
ReferenceQueue<? super T> queue) |
TransparenteWeakReference(T o,
ReferenceQueue<? super T> queue,
boolean objectToStringUsed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
protected void |
init(T o,
boolean objectToStringUsed)
On conserve le hash pour que la Reference puisse encore se faire
passer pour l'objet alors que celui-ci a disparu de la memoire
|
String |
toString() |
clear, enqueue, get, isEnqueued
protected int hash
protected String toString
protected boolean objectToStringUsed
public TransparenteWeakReference(T o)
public TransparenteWeakReference(T o, ReferenceQueue<? super T> queue)
public TransparenteWeakReference(T o, boolean objectToStringUsed)
o
- TODO ?objectToStringUsed
- if true, this ref used toString method of
encapsulated object otherwize used default Object toStringpublic TransparenteWeakReference(T o, ReferenceQueue<? super T> queue, boolean objectToStringUsed)
Copyright © 2004–2020 CodeLutin. All rights reserved.