Record Class RuleMapperContext.OneToManyContext<T,TC extends Collection<T>,K,ID,EID,R,RC extends Collection<R>>

java.lang.Object
java.lang.Record
io.github.pellse.assembler.RuleMapperContext.OneToManyContext<T,TC,K,ID,EID,R,RC>
All Implemented Interfaces:
RuleContext<T,TC,K,ID,R,RC>, RuleMapperContext<T,TC,K,ID,EID,R,RC>
Enclosing interface:
RuleMapperContext<T,TC extends Collection<T>,K,ID,EID,R,RRC>

public static record RuleMapperContext.OneToManyContext<T,TC extends Collection<T>,K,ID,EID,R,RC extends Collection<R>>(Function<T,K> topLevelIdResolver, Function<R,ID> innerIdResolver, Function<T,ID> outerIdResolver, Supplier<TC extends Collection<T>> topLevelCollectionFactory, MapFactory<ID,RC extends Collection<R>> mapFactory, Function<R,EID> idResolver, Comparator<R> idComparator, Supplier<RC extends Collection<R>> collectionFactory, Class<RC extends Collection<R>> collectionType) extends Record implements RuleMapperContext<T,TC,K,ID,EID,R,RC>
  • Constructor Details

    • OneToManyContext

      public OneToManyContext(RuleContext<T,TC,K,ID,R,RC> ruleContext, Function<R,EID> idResolver, Comparator<R> idComparator, Supplier<RC> collectionFactory)
    • OneToManyContext

      public OneToManyContext(Function<T,K> topLevelIdResolver, Function<R,ID> innerIdResolver, Function<T,ID> outerIdResolver, Supplier<TC> topLevelCollectionFactory, MapFactory<ID,RC> mapFactory, Function<R,EID> idResolver, Comparator<R> idComparator, Supplier<RC> collectionFactory, Class<RC> collectionType)
      Creates an instance of a OneToManyContext record class.
      Parameters:
      topLevelIdResolver - the value for the topLevelIdResolver record component
      innerIdResolver - the value for the innerIdResolver record component
      outerIdResolver - the value for the outerIdResolver record component
      topLevelCollectionFactory - the value for the topLevelCollectionFactory record component
      mapFactory - the value for the mapFactory record component
      idResolver - the value for the idResolver record component
      idComparator - the value for the idComparator record component
      collectionFactory - the value for the collectionFactory record component
      collectionType - the value for the collectionType record component
  • Method Details