Package zone.lamprey.function
Interface LongToDoubleFunction
- All Superinterfaces:
Function<Long,Double>,Function<Long,Double>,LongFunction<Double>,LongFunction<Double>,LongToDoubleFunction,ToDoubleFunction<Long>,ToDoubleFunction<Long>
- 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 LongToDoubleFunction extends LongFunction<Double>, ToDoubleFunction<Long>, LongToDoubleFunction
Represents a function that accepts a long-valued argument and produces a
double-valued result. This is the
long-to-double primitive
specialization for Function.
This is a functional interface whose
functional method is applyAsDouble(long).
- Since:
- 1.8
- See Also:
Function
-
Field Summary
Fields Modifier and Type Field Description static LongToDoubleFunctionCASTCast a long to a double. -
Method Summary
Modifier and Type Method Description default Doubleapply(long value)Applies this function to the given argument.default Doubleapply(Long t)Applies this function to the given argument.doubleapplyAsDouble(long value)Applies this function to the given argument.default doubleapplyAsDouble(Long value)Applies this function to the given argument.Methods inherited from interface zone.lamprey.function.LongFunction
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 a long to a double. (Warning: this is a narrowing conversion).
-
-
Method Details
-
applyAsDouble
double applyAsDouble(long value)Applies this function to the given argument.- Specified by:
applyAsDoublein interfaceLongToDoubleFunction- Parameters:
value- the function argument- Returns:
- the function result
-
applyAsDouble
Applies this function to the given argument.- Specified by:
applyAsDoublein interfaceToDoubleFunction<Long>- Specified by:
applyAsDoublein interfaceToDoubleFunction<Long>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.- Specified by:
applyin interfaceLongFunction<Double>- Specified by:
applyin interfaceLongFunction<Double>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.
-