Class ListRepresentation

    • Field Detail

      • elements

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

      • ListRepresentation

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

        public ListRepresentation​(java.util.List<DomainRepresentation> elements)
        Builds a new representation containing the given list.
        Parameters:
        elements - the list
      • ListRepresentation

        public ListRepresentation​(DomainRepresentation... elements)
        Builds a new representation containing the given elements.
        Parameters:
        elements - the list