|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.api.functions.BooleanFunction
public abstract class BooleanFunction
A Function for primitives that accepts an argument of type boolean and returns a new
value of the same type.
The reason why BooleanFunction is an abstract class instead of an ordinary interface, is that
this class doesn't cause any unwanted boxing of primitives version of the call method is used instead of the one that
accepts and returns a/an Boolean).
This class is generated.
| Constructor Summary | |
|---|---|
BooleanFunction()
|
|
| Method Summary | |
|---|---|
abstract boolean |
call(boolean current)
Calculates the new value based on the current value. |
Boolean |
call(Boolean arg)
Evaluates the function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanFunction()
| Method Detail |
|---|
public abstract boolean call(boolean current)
current - the current value.
public final Boolean call(Boolean arg)
Function
call in interface Function<Boolean>arg - the value to evaluate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||