Class HashMapSubstitution
java.lang.Object
fr.lirmm.graphik.integraal.core.AbstractSubstitution
fr.lirmm.graphik.integraal.core.AbstractMapBasedSubstitution
fr.lirmm.graphik.integraal.core.HashMapSubstitution
- All Implemented Interfaces:
Substitution, Comparable<Substitution>
An implementation of Substitution using a
HashMap.- Author:
- Clément Sipieter (INRIA) clement@6pi.fr
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty substitution backed by a hash map.HashMapSubstitution(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
-
HashMapSubstitution
public HashMapSubstitution()Creates an empty substitution backed by a hash map. -
HashMapSubstitution
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
-