Package zone.lamprey.function
Interface IntToDoubleFunction
- All Superinterfaces:
Function<Integer,Double>,Function<Integer,Double>,IntFunction<Double>,IntFunction<Double>,IntToDoubleFunction,ToDoubleFunction<Integer>,ToDoubleFunction<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 IntToDoubleFunction extends IntFunction<Double>, ToDoubleFunction<Integer>, IntToDoubleFunction
Represents a function that accepts an int-valued argument and produces a
double-valued result. This is the
int-to-double primitive
specialization for Function.
This is a functional interface whose
functional method is applyAsDouble(int).
- Since:
- 1.8
- See Also:
Function
-
Field Summary
Fields Modifier and Type Field Description static IntToDoubleFunctionCASTCast an int to a double. -
Method Summary
Modifier and Type Method Description default Doubleapply(int value)Applies this function to the given argument.default Doubleapply(Integer t)Applies this function to the given argument.doubleapplyAsDouble(int value)Applies this function to the given argument.default doubleapplyAsDouble(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.ToDoubleFunction
applyPartial, consume, map, mapToInt, mapToLong, mapToObj, mapToPredicate
-
Field Details
-
CAST
Cast an int to a double.
-
-
Method Details
-
applyAsDouble
double applyAsDouble(int value)Applies this function to the given argument.- Specified by:
applyAsDoublein interfaceIntToDoubleFunction- Parameters:
value- the function argument- Returns:
- the function result
-
applyAsDouble
Applies this function to the given argument.- Specified by:
applyAsDoublein interfaceToDoubleFunction<Integer>- Specified by:
applyAsDoublein interfaceToDoubleFunction<Integer>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.- Specified by:
applyin interfaceIntFunction<Double>- Specified by:
applyin interfaceIntFunction<Double>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.
-