Class MapRepresentation

    • Constructor Detail

      • MapRepresentation

        public MapRepresentation​(java.util.Map<K,​V> map,
                                 java.util.function.Function<K,​DomainRepresentation> keyMapper,
                                 java.util.function.Function<V,​DomainRepresentation> valueMapper)
        Builds a new representation starting from the given map. keyMapper and valueMapper are used for transforming each key and value in the map to their individual representation.
        Type Parameters:
        K - the type of keys in the map
        V - the type of values in the map
        Parameters:
        map - the map to represent
        keyMapper - the function that knows how to convert keys to their representation
        valueMapper - the function that knows how to convert values to their representation