Package zone.lamprey.function
Interface IntToLongFunction
- All Superinterfaces:
Function<Integer,Long>,Function<Integer,Long>,IntFunction<Long>,IntFunction<Long>,IntToLongFunction,ToLongFunction<Integer>,ToLongFunction<Integer>
- 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 IntToLongFunction extends IntFunction<Long>, ToLongFunction<Integer>, IntToLongFunction
Represents a function that accepts an int-valued argument and produces a
long-valued result. This is the
int-to-long primitive
specialization for Function.
This is a functional interface whose
functional method is applyAsLong(int).
- Since:
- 1.8
- See Also:
Function
-
Field Summary
Fields Modifier and Type Field Description static IntToLongFunctionCASTCast an int to a long. -
Method Summary
Modifier and Type Method Description default Longapply(int value)Applies this function to the given argument.default Longapply(Integer t)Applies this function to the given argument.longapplyAsLong(int value)Applies this function to the given argument.default longapplyAsLong(Integer value)Applies this function to the given argument.Methods inherited from interface zone.lamprey.function.IntFunction
applyPartial, consume, map, mapToDouble, mapToInt, mapToLong, mapToPredicateMethods inherited from interface zone.lamprey.function.ToLongFunction
applyPartial, consume, map, mapToDouble, mapToInt, mapToObj, mapToPredicate
-
Field Details
-
CAST
Cast an int to a long.
-
-
Method Details
-
applyAsLong
long applyAsLong(int value)Applies this function to the given argument.- Specified by:
applyAsLongin interfaceIntToLongFunction- Parameters:
value- the function argument- Returns:
- the function result
-
applyAsLong
Applies this function to the given argument.- Specified by:
applyAsLongin interfaceToLongFunction<Integer>- Specified by:
applyAsLongin interfaceToLongFunction<Integer>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.- Specified by:
applyin interfaceIntFunction<Long>- Specified by:
applyin interfaceIntFunction<Long>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.
-