setLastReturnValue
void setLastReturnValue ( Object lastReturnValue )
Description
Sets the LastReturnValue fro the object.
Parameters
- lastReturnValue The new value for the LastReturnValue
Return Values
Returns void.
Change Log
Version | Description |
---|---|
6.0.55a | Available for all editions. |
Examples
// In practice AbstractEventData is just the abstract class.
// You must actually use one of the classes that extend it.
public Object handleEvent(EventFireTime fireTime, AbstractEventData data) {
Object foo = // something here;
data.setLastReturnValue(foo);
// do something
// The EventFireTime values describe in the documentation what the return
// value will do, or says nothing about it if the value is ignored
// If you don't intend to modify the return, always return data.getLastReturnValue();
return data.getLastReturnValue();
}
// You must actually use one of the classes that extend it.
public Object handleEvent(EventFireTime fireTime, AbstractEventData data) {
Object foo = // something here;
data.setLastReturnValue(foo);
// do something
// The EventFireTime values describe in the documentation what the return
// value will do, or says nothing about it if the value is ignored
// If you don't intend to modify the return, always return data.getLastReturnValue();
return data.getLastReturnValue();
}
samt on 03/10/2016 at 4:44 pm
- Printer-friendly version
- Login or register to post comments