Class ListRepresentation

    • Field Detail

    • Constructor Detail

      • ListRepresentation

        public ListRepresentation​(java.util.List<E> elements,
                                  java.util.function.Function<E,​StructuredRepresentation> 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<StructuredRepresentation> elements)
        Builds a new representation containing the given list.
        Parameters:
        elements - the list
      • ListRepresentation

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