@FunctionalInterface public interface ToIntFunction0 extends ToIntFunctionN, UnboxedResult<Function0<java.lang.Integer>>, Variant<java.util.function.IntSupplier>
int-valued result.
This is the zero-arity specialization of ToIntFunctionN.
This is the int-producing primitive specialization of Function0.
This is a functional interface whose functional method is applyAsInt().
Function0,
ToIntFunctionNToIntFunctionN.InstanceFunctionN.FunctionSizeException| Modifier and Type | Method and Description |
|---|---|
default <V> Function0<V> |
andThen(Function1<? super java.lang.Integer,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> Function0<V> |
andThenUnchecked(Function1<? super java.lang.Integer,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default int |
applyAllAsIntUnchecked(java.lang.Object... args)
Applies this function to the given arguments.
|
int |
applyAsInt()
Applies this function.
|
default int |
arity()
Returns the number of arguments of the function.
|
default Function0<java.lang.Integer> |
boxResult()
Returns the boxed version of this object with a boxed result.
|
static ToIntFunction0 |
fromVariant(java.util.function.IntSupplier supplier)
Creates an instance of this object from its
IntSupplier variant. |
default java.util.function.IntSupplier |
toVariant()
Returns the variant of this object.
|
applyAllUncheckedcheckSize, checkSize, sizedApplyAllUncheckedint applyAsInt()
default int applyAllAsIntUnchecked(java.lang.Object... args)
ToIntFunctionNapplyAllAsIntUnchecked in interface ToIntFunctionNargs - the function argumentsdefault int arity()
FunctionN-1.static ToIntFunction0 fromVariant(java.util.function.IntSupplier supplier)
IntSupplier variant.supplier - the variant of this objectIntSupplierdefault java.util.function.IntSupplier toVariant()
Variantdefault Function0<java.lang.Integer> boxResult()
UnboxedResultboxResult in interface UnboxedResult<Function0<java.lang.Integer>>Function0default <V> Function0<V> andThen(Function1<? super java.lang.Integer,? 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.Integer>andThen in interface ResultChainable<java.lang.Integer>andThen in interface ResultChainableResult<java.lang.Integer>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 functionFunction0default <V> Function0<V> andThenUnchecked(Function1<? super java.lang.Integer,? 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.Integer>andThenUnchecked in interface ResultChainable<java.lang.Integer>andThenUnchecked in interface ResultChainableResult<java.lang.Integer>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 functionFunction0