|
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.Rejected<T>
T - referent typepublic final class Rejected<T>
A rejected promise.
| Field Summary | |
|---|---|
java.lang.Exception |
reason
reason for rejecting the promise |
| Constructor Summary | |
|---|---|
Rejected(java.lang.Exception reason)
Construct an instance. |
|
| Method Summary | |
|---|---|
T |
_(java.lang.Class type)
Creates a rejected reference. |
T |
cast()
Throws the reason. |
boolean |
equals(java.lang.Object x)
Is the given object the same? |
int |
hashCode()
Calculates the hash code. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Forwards a Java language invocation. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.Exception reason
| Constructor Detail |
|---|
public Rejected(java.lang.Exception reason)
reason - reason| Method Detail |
|---|
public 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.Object
public T cast()
throws java.lang.Exception
reason.
cast in interface Volatile<T>java.lang.Exception - reason
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Exception
invoke in interface java.lang.reflect.InvocationHandlerproxy - eventual referencemethod - method to invokeargs - invocation arguments
java.lang.Exception - problem invoking an Object method
java.lang.Error - method return cannot be eventualizedpublic T _(java.lang.Class type)
type - referent type, MUST be an
allowed proxy type
java.lang.Error - invalid type argument
|
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.