Class MapRepresentation
- java.lang.Object
-
- it.unive.lisa.analysis.representation.DomainRepresentation
-
- it.unive.lisa.analysis.representation.MapRepresentation
-
- All Implemented Interfaces:
java.lang.Comparable<DomainRepresentation>
public class MapRepresentation extends DomainRepresentation
ADomainRepresentationin the form of a key-value mapping.
-
-
Constructor Summary
Constructors Constructor Description MapRepresentation(java.util.Map<DomainRepresentation,DomainRepresentation> map)Builds a new representation containing the given map.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()-
Methods inherited from class it.unive.lisa.analysis.representation.DomainRepresentation
compareTo
-
-
-
-
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.keyMapperandvalueMapperare used for transforming each key and value in the map to their individual representation.- Type Parameters:
K- the type of keys in the mapV- the type of values in the map- Parameters:
map- the map to representkeyMapper- the function that knows how to convert keys to their representationvalueMapper- the function that knows how to convert values to their representation
-
MapRepresentation
public MapRepresentation(java.util.Map<DomainRepresentation,DomainRepresentation> map)
Builds a new representation containing the given map.- Parameters:
map- the map
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin classDomainRepresentation
-
hashCode
public int hashCode()
- Specified by:
hashCodein classDomainRepresentation
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin classDomainRepresentation
-
-