Interface FloatFunction<T>
- Type Parameters:
T- type
- All Known Implementing Classes:
FloatConstantFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Float function
-
Method Summary
Modifier and TypeMethodDescriptionapply(float value) Applies floatdefault <R> @NotNull FloatFunction<R> Maps this function to new typedefault @NotNull FloatFunction<T> memoize()Memoize this functionstatic <T> @NotNull FloatConstantFunction<T> of(T t) Creates constant function by given value
-
Method Details
-
apply
-
of
Creates constant function by given value- Type Parameters:
T- type- Parameters:
t- value- Returns:
- constant function
-
map
Maps this function to new type- Type Parameters:
R- return type- Parameters:
mapper- mapper- Returns:
- mapped function
-
memoize
Memoize this function- Returns:
- memoized function
-