|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joe_e.Struct org.ref_send.promise.Do<P,R>
P
- parameter typeR
- return typepublic abstract class Do<P,R>
An eventual conditional code block.
Method Summary | |
---|---|
abstract R |
fulfill(P arg)
Notification of a fulfilled argument. |
R |
reject(java.lang.Exception reason)
Notification of a rejected argument. |
Methods inherited from class org.joe_e.Struct |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract R fulfill(P arg) throws java.lang.Exception
arg
- argument to the code block
java.lang.Exception
- any exception produced by the code blockpublic R reject(java.lang.Exception reason) throws java.lang.Exception
The default implementation throws reason
.
reason
- reason the code block's argument is not known
java.lang.Exception
- any exception produced by the code block
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.