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 aDefaultRuleMapperContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecorrelationIdExtractor
record component.Returns the value of thedefaultResultProvider
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefromListConverter
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidCollectionFactory
record component.Returns the value of theidExtractor
record component.Returns the value of themapCollector
record component.Returns the value of themapFactory
record component.Returns the value of thetoListConverter
record component.final String
toString()
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 aDefaultRuleMapperContext
record class.- Parameters:
idExtractor
- the value for theidExtractor
record componentcorrelationIdExtractor
- the value for thecorrelationIdExtractor
record componentidCollectionFactory
- the value for theidCollectionFactory
record componentmapFactory
- the value for themapFactory
record componentdefaultResultProvider
- the value for thedefaultResultProvider
record componentmapCollector
- the value for themapCollector
record componentfromListConverter
- the value for thefromListConverter
record componenttoListConverter
- the value for thetoListConverter
record 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 theidExtractor
record component.- Specified by:
idExtractor
in interfaceRuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
idExtractor
record component
-
correlationIdExtractor
Returns the value of thecorrelationIdExtractor
record component.- Specified by:
correlationIdExtractor
in interfaceRuleContext<ID,
EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
correlationIdExtractor
record component
-
idCollectionFactory
Returns the value of theidCollectionFactory
record component.- Specified by:
idCollectionFactory
in interfaceRuleContext<ID,
EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
idCollectionFactory
record component
-
mapFactory
Returns the value of themapFactory
record component.- Specified by:
mapFactory
in interfaceRuleContext<ID,
EID, IDC extends Collection<ID>, R> - Returns:
- the value of the
mapFactory
record component
-
defaultResultProvider
Returns the value of thedefaultResultProvider
record component.- Specified by:
defaultResultProvider
in interfaceRuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
defaultResultProvider
record component
-
mapCollector
Returns the value of themapCollector
record component.- Specified by:
mapCollector
in interfaceRuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
mapCollector
record component
-
fromListConverter
Returns the value of thefromListConverter
record component.- Specified by:
fromListConverter
in interfaceRuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
fromListConverter
record component
-
toListConverter
Returns the value of thetoListConverter
record component.- Specified by:
toListConverter
in interfaceRuleMapperContext<ID,
EID, IDC extends Collection<ID>, R, RRC> - Returns:
- the value of the
toListConverter
record component
-