Record Class FloatConstantFunction<T>
java.lang.Object
java.lang.Record
kr.toxicity.model.api.util.function.FloatConstantFunction<T>
- Type Parameters:
T- type- Record Components:
value- value
- All Implemented Interfaces:
FloatFunction<T>
Float constant function
-
Constructor Summary
ConstructorsConstructorDescriptionFloatConstantFunction(T value) Creates an instance of aFloatConstantFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(float value) Applies floatfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<R> @NotNull FloatFunction<R> Maps this function to new type@NotNull FloatFunction<T> memoize()Memoize this functionfinal StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
FloatConstantFunction
-
-
Method Details
-
apply
Description copied from interface:FloatFunctionApplies float- Specified by:
applyin interfaceFloatFunction<T>- Parameters:
value- float value- Returns:
- applied value
-
map
Description copied from interface:FloatFunctionMaps this function to new type- Specified by:
mapin interfaceFloatFunction<T>- Type Parameters:
R- return type- Parameters:
mapper- mapper- Returns:
- mapped function
-
memoize
Description copied from interface:FloatFunctionMemoize this function- Specified by:
memoizein interfaceFloatFunction<T>- Returns:
- memoized function
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
value
-