Record Class KeyFunctionEncoder<I,O>
java.lang.Object
java.lang.Record
org.infinispan.cache.impl.KeyFunctionEncoder<I,O>
- All Implemented Interfaces:
Function<org.reactivestreams.Publisher<I>, O>,org.infinispan.commands.functional.functions.InjectableComponent
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKeyFunctionEncoder(Function<org.reactivestreams.Publisher<I>, O> innerFunction, DataConversion keyDataConversion) Creates an instance of aKeyFunctionEncoderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidinject(ComponentRegistry registry) Returns the value of theinnerFunctionrecord component.Returns the value of thekeyDataConversionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyFunctionEncoder
public KeyFunctionEncoder(Function<org.reactivestreams.Publisher<I>, O> innerFunction, DataConversion keyDataConversion) Creates an instance of aKeyFunctionEncoderrecord class.- Parameters:
innerFunction- the value for theinnerFunctionrecord componentkeyDataConversion- the value for thekeyDataConversionrecord component
-
-
Method Details
-
apply
-
inject
- Specified by:
injectin interfaceorg.infinispan.commands.functional.functions.InjectableComponent
-
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). -
innerFunction
-
keyDataConversion
Returns the value of thekeyDataConversionrecord component.- Returns:
- the value of the
keyDataConversionrecord component
-