Record Class EntryFunctionEncoder<K,V,O>
java.lang.Object
java.lang.Record
org.infinispan.cache.impl.EntryFunctionEncoder<K,V,O>
- All Implemented Interfaces:
Function<org.reactivestreams.Publisher<CacheEntry<K,,V>>, O> org.infinispan.commands.functional.functions.InjectableComponent
public record EntryFunctionEncoder<K,V,O> (Function<org.reactivestreams.Publisher<CacheEntry<K,V>>, O> innerFunction, EncoderEntryMapper<K, V, CacheEntry<K,V>> mapper)
extends Record
implements Function<org.reactivestreams.Publisher<CacheEntry<K,V>>, O>, org.infinispan.commands.functional.functions.InjectableComponent
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEntryFunctionEncoder(Function<org.reactivestreams.Publisher<CacheEntry<K, V>>, O> innerFunction, EncoderEntryMapper<K, V, CacheEntry<K, V>> mapper) Creates an instance of aEntryFunctionEncoderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(org.reactivestreams.Publisher<CacheEntry<K, V>> iPublisher) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidinject(ComponentRegistry registry) Function<org.reactivestreams.Publisher<CacheEntry<K, V>>, O> Returns the value of theinnerFunctionrecord component.EncoderEntryMapper<K, V, CacheEntry<K, V>> mapper()Returns the value of themapperrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntryFunctionEncoder
public EntryFunctionEncoder(Function<org.reactivestreams.Publisher<CacheEntry<K, V>>, O> innerFunction, EncoderEntryMapper<K, V, CacheEntry<K, V>> mapper) Creates an instance of aEntryFunctionEncoderrecord class.- Parameters:
innerFunction- the value for theinnerFunctionrecord componentmapper- the value for themapperrecord 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
Returns the value of theinnerFunctionrecord component.- Returns:
- the value of the
innerFunctionrecord component
-
mapper
Returns the value of themapperrecord component.- Returns:
- the value of the
mapperrecord component
-