|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ref_send.promise.Fulfilled<T>
T - referent typepublic class Fulfilled<T>
A promise that alleges to be fulfilled.
| Method Summary | ||
|---|---|---|
T |
cast()
Gets the fulfilled value. |
|
static
|
detach(T value)
Marks a point where deserialization of an object graph may be deferred. |
|
boolean |
equals(java.lang.Object x)
Is the given object the same? |
|
int |
hashCode()
Calculates the hash code. |
|
static
|
ref(T value)
Adapts an immediate reference to the Promise interface. |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Promise<T> ref(T value)
Promise interface.
T - referent typevalue - immediate referent
valuepublic static <T> Fulfilled<T> detach(T value)
If a referrer holds the promise returned by this method, instead of a direct reference to the referent, the persistence engine may defer deserialization of the referent until it is accessed.
T - referent typevalue - referent
valuepublic boolean equals(java.lang.Object x)
equals in class java.lang.Objectx - compared to object
true if the same, else falsepublic int hashCode()
hashCode in interface SelflesshashCode in class java.lang.Objectpublic T cast()
cast in interface Volatile<T>
|
ref_send API 1.16 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2007 Waterken Inc. under the terms of the MIT X license.