Record Class RuleMapperContext.DefaultRuleMapperContext<ID,IDC extends Collection<ID>,R,RRC>
java.lang.Object
java.lang.Record
io.github.pellse.reactive.assembler.RuleMapperContext.DefaultRuleMapperContext<ID,IDC,R,RRC>
- All Implemented Interfaces:
RuleContext<ID,,IDC, R, RRC> RuleMapperContext<ID,IDC, R, RRC>
- Enclosing interface:
- RuleMapperContext<ID,
IDC extends Collection<ID>, R, RRC>
public static record RuleMapperContext.DefaultRuleMapperContext<ID,IDC extends Collection<ID>,R,RRC> (Function<R,ID> idExtractor, Supplier<IDC extends Collection<ID>> idCollectionFactory, MapFactory<ID,RRC> mapFactory, Function<ID,RRC> defaultResultProvider, IntFunction<Collector<R,?,Map<ID,RRC>>> mapCollector, Function<Stream<RRC>,Stream<R>> streamFlattener, MergeStrategy<ID,RRC> mergeStrategy, MergeStrategy<ID,RRC> removeStrategy)
extends Record
implements RuleMapperContext<ID,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,IDC extends Collection<ID>, R, RRC> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRuleMapperContext(Function<R, ID> idExtractor, Supplier<IDC> idCollectionFactory, MapFactory<ID, RRC> mapFactory, Function<ID, RRC> defaultResultProvider, IntFunction<Collector<R, ?, Map<ID, RRC>>> mapCollector, Function<Stream<RRC>, Stream<R>> streamFlattener, MergeStrategy<ID, RRC> mergeStrategy, MergeStrategy<ID, RRC> removeStrategy) Creates an instance of aDefaultRuleMapperContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultResultProviderrecord component.final booleanIndicates whether some other object is "equal to" this one.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 themergeStrategyrecord component.Returns the value of theremoveStrategyrecord component.Returns the value of thestreamFlattenerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultRuleMapperContext
public DefaultRuleMapperContext(Function<R, ID> idExtractor, Supplier<IDC> idCollectionFactory, MapFactory<ID, RRC> mapFactory, Function<ID, RRC> defaultResultProvider, IntFunction<Collector<R, ?, Map<ID, RRC>>> mapCollector, Function<Stream<RRC>, Stream<R>> streamFlattener, MergeStrategy<ID, RRC> mergeStrategy, MergeStrategy<ID, RRC> removeStrategy) Creates an instance of aDefaultRuleMapperContextrecord class.- Parameters:
idExtractor- the value for theidExtractorrecord componentidCollectionFactory- the value for theidCollectionFactoryrecord componentmapFactory- the value for themapFactoryrecord componentdefaultResultProvider- the value for thedefaultResultProviderrecord componentmapCollector- the value for themapCollectorrecord componentstreamFlattener- the value for thestreamFlattenerrecord componentmergeStrategy- the value for themergeStrategyrecord componentremoveStrategy- the value for theremoveStrategyrecord 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 interfaceRuleContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
idExtractorrecord component
-
idCollectionFactory
Returns the value of theidCollectionFactoryrecord component.- Specified by:
idCollectionFactoryin interfaceRuleContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
idCollectionFactoryrecord component
-
mapFactory
Returns the value of themapFactoryrecord component.- Specified by:
mapFactoryin interfaceRuleContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
mapFactoryrecord component
-
defaultResultProvider
Returns the value of thedefaultResultProviderrecord component.- Specified by:
defaultResultProviderin interfaceRuleMapperContext<ID,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,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
mapCollectorrecord component
-
streamFlattener
Returns the value of thestreamFlattenerrecord component.- Specified by:
streamFlattenerin interfaceRuleMapperContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
streamFlattenerrecord component
-
mergeStrategy
Returns the value of themergeStrategyrecord component.- Specified by:
mergeStrategyin interfaceRuleMapperContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
mergeStrategyrecord component
-
removeStrategy
Returns the value of theremoveStrategyrecord component.- Specified by:
removeStrategyin interfaceRuleMapperContext<ID,IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
removeStrategyrecord component
-