|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavacardx.framework.TransientReference<T>
@TransactionType(value=NOT_SUPPORTED) public final class TransientReference<T>
TransientReference objects prevent their referents from being promoted to persistent storage when they are not otherwise reachable from objects in the persistent storage.
References held by transient reference objects are systematically cleared after a platform reset. This happens regardless of the actual status of the referred objects, that is regardless of whether the referred objects have been promoted to persistent storage by virtue of being reachable from the persistent storage through other references.
Constructor Summary | |
---|---|
TransientReference(T referent)
Creates a new transient reference that refers to the given object. |
Method Summary | |
---|---|
void |
clear()
Clears this reference object. |
T |
get()
Returns this reference object's referent. |
void |
set(T referent)
Sets this reference to refer to the given object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransientReference(T referent)
referent
- object the new transient reference will refer to.Method Detail |
---|
public void clear()
public T get()
null
.
null
if this reference object has been clearedpublic void set(T referent)
referent
- object the new transient reference will refer to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |