class DroolsFlatteningTriConstraintStream<Solution_, A, B, NewC>
        extends DroolsAbstractTriConstraintStream<Solution_, A, B, NewC> {

    private final Supplier<TriLeftHandSide<A, B, NewC>> leftHandSide;

    public <C> DroolsFlatteningTriConstraintStream(DroolsConstraintFactory<Solution_> constraintFactory,
            DroolsAbstractTriConstraintStream<Solution_, A, B, C> parent, Function<C, Iterable<NewC>> triMapping) {
        super(constraintFactory, parent.getRetrievalSemantics());
        this.leftHandSide = () -> parent.createLeftHandSide().andFlattenLast(triMapping);
    }

    @Override
    public boolean guaranteesDistinct() {<FILL_FUNCTION_BODY>}

    // ************************************************************************
    // Pattern creation
    // ************************************************************************

    @Override
    public TriLeftHandSide<A, B, NewC> createLeftHandSide() {
        return leftHandSide.get();
    }

    @Override
    public String toString() {
        return "TriFlatten() with " + getChildStreams().size() + " children";
    }

}

        return false; // flattening can never guarantee distinct tuples, as we do not see inside the Iterable.
    
<methods>public void <init>(DroolsConstraintFactory<Solution_>, org.optaplanner.constraint.streams.common.RetrievalSemantics) ,public TriConstraintStream<A,B,NewC> filter(TriPredicate<A,B,NewC>) ,public TriConstraintStream<A,B,ResultC_> flattenLast(Function<NewC,Iterable<ResultC_>>) ,public UniConstraintStream<Result_> groupBy(TriConstraintCollector<A,B,NewC,ResultContainer_,Result_>) ,public BiConstraintStream<ResultA_,ResultB_> groupBy(TriConstraintCollector<A,B,NewC,ResultContainerA_,ResultA_>, TriConstraintCollector<A,B,NewC,ResultContainerB_,ResultB_>) ,public TriConstraintStream<ResultA_,ResultB_,ResultC_> groupBy(TriConstraintCollector<A,B,NewC,ResultContainerA_,ResultA_>, TriConstraintCollector<A,B,NewC,ResultContainerB_,ResultB_>, TriConstraintCollector<A,B,NewC,ResultContainerC_,ResultC_>) ,public QuadConstraintStream<ResultA_,ResultB_,ResultC_,ResultD_> groupBy(TriConstraintCollector<A,B,NewC,ResultContainerA_,ResultA_>, TriConstraintCollector<A,B,NewC,ResultContainerB_,ResultB_>, TriConstraintCollector<A,B,NewC,ResultContainerC_,ResultC_>, TriConstraintCollector<A,B,NewC,ResultContainerD_,ResultD_>) ,public UniConstraintStream<GroupKey_> groupBy(TriFunction<A,B,NewC,GroupKey_>) ,public BiConstraintStream<GroupKey_,Result_> groupBy(TriFunction<A,B,NewC,GroupKey_>, TriConstraintCollector<A,B,NewC,ResultContainer_,Result_>) ,public TriConstraintStream<GroupKey_,ResultB_,ResultC_> groupBy(TriFunction<A,B,NewC,GroupKey_>, TriConstraintCollector<A,B,NewC,ResultContainerB_,ResultB_>, TriConstraintCollector<A,B,NewC,ResultContainerC_,ResultC_>) ,public QuadConstraintStream<GroupKey_,ResultB_,ResultC_,ResultD_> groupBy(TriFunction<A,B,NewC,GroupKey_>, TriConstraintCollector<A,B,NewC,ResultContainerB_,ResultB_>, TriConstraintCollector<A,B,NewC,ResultContainerC_,ResultC_>, TriConstraintCollector<A,B,NewC,ResultContainerD_,ResultD_>) ,public BiConstraintStream<GroupKeyA_,GroupKeyB_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>) ,public TriConstraintStream<GroupKeyA_,GroupKeyB_,Result_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>, TriConstraintCollector<A,B,NewC,ResultContainer_,Result_>) ,public QuadConstraintStream<GroupKeyA_,GroupKeyB_,ResultC_,ResultD_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>, TriConstraintCollector<A,B,NewC,ResultContainerC_,ResultC_>, TriConstraintCollector<A,B,NewC,ResultContainerD_,ResultD_>) ,public TriConstraintStream<GroupKeyA_,GroupKeyB_,GroupKeyC_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>, TriFunction<A,B,NewC,GroupKeyC_>) ,public QuadConstraintStream<GroupKeyA_,GroupKeyB_,GroupKeyC_,ResultD_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>, TriFunction<A,B,NewC,GroupKeyC_>, TriConstraintCollector<A,B,NewC,ResultContainerD_,ResultD_>) ,public QuadConstraintStream<GroupKeyA_,GroupKeyB_,GroupKeyC_,GroupKeyD_> groupBy(TriFunction<A,B,NewC,GroupKeyA_>, TriFunction<A,B,NewC,GroupKeyB_>, TriFunction<A,B,NewC,GroupKeyC_>, TriFunction<A,B,NewC,GroupKeyD_>) ,public final transient TriConstraintStream<A,B,NewC> ifExists(Class<D>, QuadJoiner<A,B,NewC,D>[]) ,public final transient TriConstraintStream<A,B,NewC> ifExistsIncludingNullVars(Class<D>, QuadJoiner<A,B,NewC,D>[]) ,public final transient TriConstraintStream<A,B,NewC> ifNotExists(Class<D>, QuadJoiner<A,B,NewC,D>[]) ,public final transient TriConstraintStream<A,B,NewC> ifNotExistsIncludingNullVars(Class<D>, QuadJoiner<A,B,NewC,D>[]) ,public TriConstraintBuilder<A,B,NewC,Score_> innerImpact(Score_, ToIntTriFunction<A,B,NewC>, org.optaplanner.constraint.streams.common.ScoreImpactType) ,public TriConstraintBuilder<A,B,NewC,Score_> innerImpact(Score_, ToLongTriFunction<A,B,NewC>, org.optaplanner.constraint.streams.common.ScoreImpactType) ,public TriConstraintBuilder<A,B,NewC,Score_> innerImpact(Score_, TriFunction<A,B,NewC,java.math.BigDecimal>, org.optaplanner.constraint.streams.common.ScoreImpactType) ,public final transient QuadConstraintStream<A,B,NewC,D> join(UniConstraintStream<D>, QuadJoiner<A,B,NewC,D>[]) ,public UniConstraintStream<ResultA_> map(TriFunction<A,B,NewC,ResultA_>) <variables>