FnBoolean is a function hub class containing a lot of static methods returning functions that take a Boolean object as its input.
Function name | Type | Params | Description |
---|---|---|---|
and | Function<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. |
eq | Function<Object,Boolean> | Boolean object | Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
eq | Function<Object,Boolean> | boolean object | Determines whether the target object and the specified object are equal by calling the equals method on the target object. |
eqBy | Function<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. |
eqBy | Function<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. |
isFalse | Function<Boolean,Boolean> | Returns true if the target object is Boolean.FALSE, false if it is Boolean.TRUE. | |
isNotNull | Function<Object,Boolean> | Determines whether the target object is null or not. | |
isNotNullBy | Function<X,Boolean> | IFunction<X,?> by | Determines whether the result of executing the specified function on the target object is null or not. |
isNull | Function<Object,Boolean> | Determines whether the target object is null or not. | |
isNullBy | Function<X,Boolean> | IFunction<X,?> by | Determines whether the result of executing the specified function on the target object is null or not. |
isTrue | Function<Boolean,Boolean> | Returns true if the target object is Boolean.TRUE, false if it is Boolean.FALSE. | |
negate | Function<Boolean,Boolean> | Negates the target Boolean, returning Boolean.FALSE if the target object is Boolean.TRUE, and Boolean.TRUE if it is Boolean.FALSE. | |
not | Function<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. |
notEq | Function<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. |
notEq | Function<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. |
notEqBy | Function<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. |
notEqBy | Function<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. |
or | Function<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. |
toBigDecimal | Function<Boolean,BigDecimal> | Converts a Boolean to a BigDecimal. true = 1, false = 0. | |
toBigInteger | Function<Boolean,BigInteger> | Converts a Boolean to a BigInteger. true = 1, false = 0. | |
toByte | Function<Boolean,Byte> | Converts a Boolean to a Byte. true = 1, false = 0. | |
toDouble | Function<Boolean,Double> | Converts a Boolean to a Double. true = 1, false = 0. | |
toFloat | Function<Boolean,Float> | Converts a Boolean to a Float. true = 1, false = 0. | |
toInteger | Function<Boolean,Integer> | Converts a Boolean to a Integer. true = 1, false = 0. | |
toLong | Function<Boolean,Long> | Converts a Boolean to a Long. true = 1, false = 0. | |
toShort | Function<Boolean,Short> | Converts a Boolean to a Short. true = 1, false = 0. |