Class SetRepresentation

    • Field Detail

      • elements

        protected final java.util.SortedSet<DomainRepresentation> elements
        The elements of contained in this set.
    • Constructor Detail

      • SetRepresentation

        public SetRepresentation​(java.util.Set<E> elements,
                                 java.util.function.Function<E,​DomainRepresentation> mapper)
        Builds a new representation starting from the given set. mapper is used for transforming each element in the set to its individual representation.
        Type Parameters:
        E - the type of elements in the set
        Parameters:
        elements - the set to represent
        mapper - the function that knows how to convert elements to their representation
      • SetRepresentation

        public SetRepresentation​(java.util.Set<DomainRepresentation> elements)
        Builds a new representation containing the given set.
        Parameters:
        elements - the set