@FunctionalInterface public interface ShortToBooleanFunction1 extends ToBooleanFunctionN, InputChainableInput<java.lang.Short>, UnboxedAll<Function1<java.lang.Short,java.lang.Boolean>,ToBooleanFunction1<java.lang.Short>,ShortFunction1<java.lang.Boolean>>
short-valued argument and produces a boolean-valued result.
This is the one-arity specialization of ToBooleanFunctionN.
This is the short-consuming primitive specialization of ToBooleanFunction1.
This is the boolean-producing primitive specialization of ShortFunction1.
This is a functional interface whose functional method is applyAsBoolean(short).
ShortFunction1,
ToBooleanFunction1,
ToBooleanFunctionNToBooleanFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> ShortFunction1<V> |
andThen(Function1<? super java.lang.Boolean,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> ShortFunction1<V> |
andThenUnchecked(Function1<? super java.lang.Boolean,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default boolean |
applyAllAsBooleanUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
boolean |
applyAsBoolean(short value)
Applies this function to the given argument.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function1<java.lang.Short,java.lang.Boolean> |
box()
Returns the boxed version of this object with a boxed input and result.
|
default ToBooleanFunction1<java.lang.Short> |
boxInput()
Returns the boxed version of this object with a boxed input.
|
default ShortFunction1<java.lang.Boolean> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
default <V> ToBooleanFunction1<V> |
compose(Function1<? super V,? extends java.lang.Short> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> ToBooleanFunction1<V> |
composeUnchecked(Function1<? super V,? extends java.lang.Short> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedboolean applyAsBoolean(short value)
value - the function argumentdefault boolean applyAllAsBooleanUnchecked(java.lang.Object... args)
ToBooleanFunctionNapplyAllAsBooleanUnchecked in interface ToBooleanFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.default Function1<java.lang.Short,java.lang.Boolean> box()
Unboxeddefault ToBooleanFunction1<java.lang.Short> boxInput()
UnboxedInputboxInput in interface UnboxedInput<ToBooleanFunction1<java.lang.Short>>ToBooleanFunction1default ShortFunction1<java.lang.Boolean> boxResult()
UnboxedResultboxResult in interface UnboxedResult<ShortFunction1<java.lang.Boolean>>ShortFunction1default <V> ToBooleanFunction1<V> compose(Function1<? super V,? extends java.lang.Short> before)
InputChainablebefore function to its
input, and then applies this chainable object to the result. If evaluation
of either throws an exception, it is relayed to the caller of the chained
object.compose in interface InputChainable<java.lang.Short>compose in interface InputChainableInput<java.lang.Short>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectToBooleanFunction1default <V> ToBooleanFunction1<V> composeUnchecked(Function1<? super V,? extends java.lang.Short> before)
InputChainablebefore function to its
input, and then applies this chainable object to the result. If evaluation
of either throws an exception, it is relayed to the caller of the chained
object. This makes no assumptions on the arguments of this method.composeUnchecked in interface InputChainable<java.lang.Short>composeUnchecked in interface InputChainableInput<java.lang.Short>V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectToBooleanFunction1default <V> ShortFunction1<V> andThen(Function1<? super java.lang.Boolean,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.andThen in interface FunctionN<java.lang.Boolean>andThen in interface ResultChainable<java.lang.Boolean>andThen in interface ResultChainableResult<java.lang.Boolean>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter functionShortFunction1default <V> ShortFunction1<V> andThenUnchecked(Function1<? super java.lang.Boolean,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.
This makes no assumptions on the arguments of this method.andThenUnchecked in interface FunctionN<java.lang.Boolean>andThenUnchecked in interface ResultChainable<java.lang.Boolean>andThenUnchecked in interface ResultChainableResult<java.lang.Boolean>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter functionShortFunction1