Class TreeMapSubstitution
java.lang.Object
fr.lirmm.graphik.integraal.core.AbstractSubstitution
fr.lirmm.graphik.integraal.core.AbstractMapBasedSubstitution
fr.lirmm.graphik.integraal.core.TreeMapSubstitution
- All Implemented Interfaces:
Substitution, Comparable<Substitution>
- Direct Known Subclasses:
FreshVarSubstitution
An implementation of Susbstitution using a
TreeMap- Author:
- Clément Sipieter (INRIA) clement@6pi.fr
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty tree-map-based substitution.TreeMapSubstitution(Substitution substitution) Creates a substitution initialized from the given substitution. -
Method Summary
Methods inherited from class AbstractMapBasedSubstitution
aggregate, createImageOf, getTerms, getValues, put, removeMethods inherited from class AbstractSubstitution
aggregate, appendTo, apply, apply, compareTo, compose, compose, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, equals, equals, hashCode, put, toStringMethods inherited from interface Comparable
compareToMethods inherited from interface Substitution
aggregate, apply, apply, compose, compose, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, createImageOf, put
-
Constructor Details
-
TreeMapSubstitution
public TreeMapSubstitution()Creates an empty tree-map-based substitution. -
TreeMapSubstitution
Creates a substitution initialized from the given substitution.- Parameters:
substitution- the substitution to copy
-
-
Method Details
-
getMap
Description copied from class:AbstractMapBasedSubstitutionReturns the mutable map that stores the substitution mappings.- Specified by:
getMapin classAbstractMapBasedSubstitution- Returns:
- the backing map
-
appendTo
Appends this object representation to the provided builder.- Parameters:
sb- the target builder
-