Class PairRepresentation

    • Constructor Detail

      • PairRepresentation

        public PairRepresentation​(L left,
                                  R right,
                                  java.util.function.Function<L,​DomainRepresentation> leftMapper,
                                  java.util.function.Function<R,​DomainRepresentation> rightMapper)
        Builds a new representation starting from the given pair of elements. leftMapper and rightMapper are used for transforming both elements to their individual representation.
        Type Parameters:
        L - the type of the left element
        R - the type of the right element
        Parameters:
        left - the left element to represent
        right - the right element to represent
        leftMapper - the function that knows how to convert the left element to its representation
        rightMapper - the function that knows how to convert the right element to its representation
      • PairRepresentation

        public PairRepresentation​(DomainRepresentation left,
                                  DomainRepresentation right)
        Builds a new representation containing the given pair of elements.
        Parameters:
        left - the left-most element
        right - the right-most element