Class AbstractConstraintStreamHelper<Right,​JoinedStream,​Joiner,​Predicate>

    • Constructor Detail

      • AbstractConstraintStreamHelper

        public AbstractConstraintStreamHelper()
    • Method Detail

      • doJoin

        protected abstract JoinedStream doJoin​(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<Right> otherStream)
      • doJoin

        protected abstract JoinedStream doJoin​(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<Right> otherStream,
                                               Joiner joiner)
      • doJoin

        protected abstract JoinedStream doJoin​(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<Right> otherStream,
                                               Joiner... joiners)
      • mergeJoiners

        protected abstract Joiner mergeJoiners​(Joiner... joiners)
      • isFilteringJoiner

        protected abstract boolean isFilteringJoiner​(Joiner joiner)
      • extractPredicate

        protected abstract Predicate extractPredicate​(Joiner joiner)
      • join

        public final JoinedStream join​(org.optaplanner.core.api.score.stream.uni.UniConstraintStream<Right> otherStream,
                                       Joiner... joiners)
        Converts a set of joiners into a single composite joiner, optionally followed by some filters. Ensures that the joiners are properly ordered filters-last.
        Parameters:
        otherStream - never null
        joiners - never null
        Returns:
        never null, stream with all the joiners applied