Class ObjectRepresentation

    • Field Detail

      • fields

        protected final java.util.SortedMap<java.lang.String,​StructuredRepresentation> fields
        The fields of this object, with their values.
    • Constructor Detail

      • ObjectRepresentation

        public ObjectRepresentation​(java.util.Map<java.lang.String,​V> fields,
                                    java.util.function.Function<V,​StructuredRepresentation> mapper)
        Builds a new representation starting from the given map. mapper is used for transforming each value in the map to its individual representation.
        Type Parameters:
        V - the type of values in the map
        Parameters:
        fields - the map to represent
        mapper - the function that knows how to convert values to their representation
      • ObjectRepresentation

        public ObjectRepresentation​(java.util.Map<java.lang.String,​StructuredRepresentation> map)
        Builds a new representation containing the given map.
        Parameters:
        map - the map