Functions: FnBoolean

1. Overview

FnBoolean is a function hub class containing a lot of static methods returning functions that take a Boolean object as its input.

2. Functions

Function nameTypeParamsDescription
andFunction<R,Boolean>IFunction<X,Boolean> left
IFunction<? super R,Boolean> right

Takes two boolean functions (Function<?,Boolean>) as parameters and returns another one which returns true if both functions return true, and false if not.

eqFunction<Object,Boolean>Boolean object

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

eqFunction<Object,Boolean>boolean object

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

eqByFunction<X,Boolean>IFunction<X,?> by
Boolean object

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

eqByFunction<X,Boolean>IFunction<X,?> by
boolean object

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

isFalseFunction<Boolean,Boolean>

Returns true if the target object is Boolean.FALSE, false if it is Boolean.TRUE.

isNotNullFunction<Object,Boolean>

Determines whether the target object is null or not.

isNotNullByFunction<X,Boolean>IFunction<X,?> by

Determines whether the result of executing the specified function on the target object is null or not.

isNullFunction<Object,Boolean>

Determines whether the target object is null or not.

isNullByFunction<X,Boolean>IFunction<X,?> by

Determines whether the result of executing the specified function on the target object is null or not.

isTrueFunction<Boolean,Boolean>

Returns true if the target object is Boolean.TRUE, false if it is Boolean.FALSE.

negateFunction<Boolean,Boolean>

Negates the target Boolean, returning Boolean.FALSE if the target object is Boolean.TRUE, and Boolean.TRUE if it is Boolean.FALSE.

notFunction<T,Boolean>IFunction<T, Boolean> function

Takes a boolean function (Function<?,Boolean>) as a parameter and returns another one which returns true if the specified function returns false, and false if the function returns true.

notEqFunction<Object,Boolean>Boolean object

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

notEqFunction<Object,Boolean>boolean object

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

notEqByFunction<X,Boolean>IFunction<X,?> by
Boolean object

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

notEqByFunction<X,Boolean>IFunction<X,?> by
boolean object

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

orFunction<R,Boolean>IFunction<X,Boolean> left
IFunction<? super R,Boolean> right

Takes two boolean functions (Function<?,Boolean>) as parameters and returns another one which returns true if any of the functions returns true, and false if not.

toBigDecimalFunction<Boolean,BigDecimal>

Converts a Boolean to a BigDecimal. true = 1, false = 0.

toBigIntegerFunction<Boolean,BigInteger>

Converts a Boolean to a BigInteger. true = 1, false = 0.

toByteFunction<Boolean,Byte>

Converts a Boolean to a Byte. true = 1, false = 0.

toDoubleFunction<Boolean,Double>

Converts a Boolean to a Double. true = 1, false = 0.

toFloatFunction<Boolean,Float>

Converts a Boolean to a Float. true = 1, false = 0.

toIntegerFunction<Boolean,Integer>

Converts a Boolean to a Integer. true = 1, false = 0.

toLongFunction<Boolean,Long>

Converts a Boolean to a Long. true = 1, false = 0.

toShortFunction<Boolean,Short>

Converts a Boolean to a Short. true = 1, false = 0.