Package zone.lamprey.function
Interface DoubleToLongFunction
- All Superinterfaces:
DoubleFunction<Long>,DoubleFunction<Long>,DoubleToLongFunction,Function<Double,Long>,Function<Double,Long>,ToLongFunction<Double>,ToLongFunction<Double>
- 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 DoubleToLongFunction extends DoubleFunction<Long>, ToLongFunction<Double>, DoubleToLongFunction
Represents a function that accepts a double-valued argument and produces a
long-valued result. This is the
double-to-long primitive
specialization for Function.
This is a functional interface whose
functional method is applyAsLong(double).
- Since:
- 1.8
- See Also:
Function
-
Field Summary
Fields Modifier and Type Field Description static DoubleToLongFunctionCASTCast a double to a long.static DoubleToLongFunctionROUNDFunctional interface toMath.round(double) -
Method Summary
Modifier and Type Method Description default Longapply(double value)Applies this function to the given argument.default Longapply(Double t)Applies this function to the given argument.longapplyAsLong(double value)Applies this function to the given argument.default longapplyAsLong(Double value)Applies this function to the given argument.Methods inherited from interface zone.lamprey.function.DoubleFunction
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 a double to a long. Fractional values will be truncated. -
ROUND
Functional interface toMath.round(double)
-
-
Method Details
-
applyAsLong
long applyAsLong(double value)Applies this function to the given argument.- Specified by:
applyAsLongin interfaceDoubleToLongFunction- Parameters:
value- the function argument- Returns:
- the function result
-
applyAsLong
Applies this function to the given argument.- Specified by:
applyAsLongin interfaceToLongFunction<Double>- Specified by:
applyAsLongin interfaceToLongFunction<Double>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.- Specified by:
applyin interfaceDoubleFunction<Long>- Specified by:
applyin interfaceDoubleFunction<Long>- Parameters:
value- the function argument- Returns:
- the function result
-
apply
Applies this function to the given argument.
-