Record Class RuleMapperContext.DefaultRuleMapperContext<ID,EID,IDC extends Collection<ID>,R,RRC>
java.lang.Object
java.lang.Record
io.github.pellse.reactive.assembler.RuleMapperContext.DefaultRuleMapperContext<ID,EID,IDC,R,RRC>
- All Implemented Interfaces:
RuleContext<ID,,IDC, R, RRC> RuleMapperContext<ID,EID, IDC, R, RRC>
- Enclosing interface:
- RuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC>
public static record RuleMapperContext.DefaultRuleMapperContext<ID,EID,IDC extends Collection<ID>,R,RRC> (Function<R,EID> idExtractor, Function<R,ID> correlationIdExtractor, Supplier<IDC extends Collection<ID>> idCollectionFactory, MapFactory<ID,RRC> mapFactory, Function<ID,RRC> defaultResultProvider, IntFunction<Collector<R,?,Map<ID,RRC>>> mapCollector, Function<List<R>,RRC> fromListConverter, Function<RRC,List<R>> toListConverter)
extends Record
implements RuleMapperContext<ID,EID,IDC,R,RRC>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.pellse.reactive.assembler.RuleContext
RuleContext.DefaultRuleContext<ID,IDC extends Collection<ID>, R, RRC> Nested classes/interfaces inherited from interface io.github.pellse.reactive.assembler.RuleMapperContext
RuleMapperContext.DefaultRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRuleMapperContext(Function<R, EID> idExtractor, Function<R, ID> correlationIdExtractor, Supplier<IDC> idCollectionFactory, MapFactory<ID, RRC> mapFactory, Function<ID, RRC> defaultResultProvider, IntFunction<Collector<R, ?, Map<ID, RRC>>> mapCollector, Function<List<R>, RRC> fromListConverter, Function<RRC, List<R>> toListConverter) Creates an instance of aDefaultRuleMapperContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecorrelationIdExtractorrecord component.Returns the value of thedefaultResultProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromListConverterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidCollectionFactoryrecord component.Returns the value of theidExtractorrecord component.Returns the value of themapCollectorrecord component.Returns the value of themapFactoryrecord component.Returns the value of thetoListConverterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultRuleMapperContext
public DefaultRuleMapperContext(Function<R, EID> idExtractor, Function<R, ID> correlationIdExtractor, Supplier<IDC> idCollectionFactory, MapFactory<ID, RRC> mapFactory, Function<ID, RRC> defaultResultProvider, IntFunction<Collector<R, ?, Map<ID, RRC>>> mapCollector, Function<List<R>, RRC> fromListConverter, Function<RRC, List<R>> toListConverter) Creates an instance of aDefaultRuleMapperContextrecord class.- Parameters:
idExtractor- the value for theidExtractorrecord componentcorrelationIdExtractor- the value for thecorrelationIdExtractorrecord componentidCollectionFactory- the value for theidCollectionFactoryrecord componentmapFactory- the value for themapFactoryrecord componentdefaultResultProvider- the value for thedefaultResultProviderrecord componentmapCollector- the value for themapCollectorrecord componentfromListConverter- the value for thefromListConverterrecord componenttoListConverter- the value for thetoListConverterrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
idExtractor
Returns the value of theidExtractorrecord component.- Specified by:
idExtractorin interfaceRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
idExtractorrecord component
-
correlationIdExtractor
Returns the value of thecorrelationIdExtractorrecord component.- Specified by:
correlationIdExtractorin interfaceRuleContext<ID,EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
correlationIdExtractorrecord component
-
idCollectionFactory
Returns the value of theidCollectionFactoryrecord component.- Specified by:
idCollectionFactoryin interfaceRuleContext<ID,EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
idCollectionFactoryrecord component
-
mapFactory
Returns the value of themapFactoryrecord component.- Specified by:
mapFactoryin interfaceRuleContext<ID,EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
mapFactoryrecord component
-
defaultResultProvider
Returns the value of thedefaultResultProviderrecord component.- Specified by:
defaultResultProviderin interfaceRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
defaultResultProviderrecord component
-
mapCollector
Returns the value of themapCollectorrecord component.- Specified by:
mapCollectorin interfaceRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
mapCollectorrecord component
-
fromListConverter
Returns the value of thefromListConverterrecord component.- Specified by:
fromListConverterin interfaceRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
fromListConverterrecord component
-
toListConverter
Returns the value of thetoListConverterrecord component.- Specified by:
toListConverterin interfaceRuleMapperContext<ID,EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
toListConverterrecord component
-