public class Result<T> extends java.lang.Object implements Referable<T>
BiFunction
.
The Result
object can then contain a pointer to any instance, which can be shared with lamda calls
and across other objects (i.e. DecisionBook and Decision objects)Constructor and Description |
---|
Result() |
Result(T value)
Creates an instance of Result with a default value.
|
Modifier and Type | Method and Description |
---|---|
T |
getValue()
The method getValue() returns the object contained in the Result object.
|
void |
reset()
Resets the value of the Result to its default value.
|
void |
setValue(T value)
The method setValue() sets the object to be contained in the Result object.
|
java.lang.String |
toString() |
public Result()
public Result(T value)
value
- the default value.public void reset()
public T getValue()
public void setValue(T value)
public java.lang.String toString()
toString
in class java.lang.Object