Interface IntFunction<T>
- All Superinterfaces:
Serializable
,ToIntFunction<T>
- All Known Implementing Classes:
Functions.IntFunctionChain
,Functions.SizeFunction
,IntegerFunctionImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IntFunction<T> extends ToIntFunction<T>, Serializable
IntFunction is a primitive Function which may be used to reduce the overhead
of autoboxing Integer objects in places where primitive ints could be used.
This file was automatically generated from template file primitiveFunction.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description default int
applyAsInt(T value)
int
intValueOf(T anObject)
-
Method Details
-
intValueOf
-
applyAsInt
- Specified by:
applyAsInt
in interfaceToIntFunction<T>
-