Record Class Metamodel
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.metamodel.Metamodel
public record Metamodel(TypeHierarchy typeHierarchy, Map<PartialRelation,ContainmentInfo> containmentHierarchy, Map<PartialRelation,DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation,UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation,PartialRelation> oppositeReferences)
extends Record
-
Constructor Summary
ConstructorDescriptionMetamodel
(TypeHierarchy typeHierarchy, Map<PartialRelation, ContainmentInfo> containmentHierarchy, Map<PartialRelation, DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation, UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation, PartialRelation> oppositeReferences) Creates an instance of aMetamodel
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetamodelBuilder
builder()
Returns the value of thecontainmentHierarchy
record component.Returns the value of thedirectedCrossReferences
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoppositeReferences
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetypeHierarchy
record component.Returns the value of theundirectedCrossReferences
record component.
-
Constructor Details
-
Metamodel
public Metamodel(TypeHierarchy typeHierarchy, Map<PartialRelation, ContainmentInfo> containmentHierarchy, Map<PartialRelation, DirectedCrossReferenceInfo> directedCrossReferences, Map<PartialRelation, UndirectedCrossReferenceInfo> undirectedCrossReferences, Map<PartialRelation, PartialRelation> oppositeReferences) Creates an instance of aMetamodel
record class.- Parameters:
typeHierarchy
- the value for thetypeHierarchy
record componentcontainmentHierarchy
- the value for thecontainmentHierarchy
record componentdirectedCrossReferences
- the value for thedirectedCrossReferences
record componentundirectedCrossReferences
- the value for theundirectedCrossReferences
record componentoppositeReferences
- the value for theoppositeReferences
record component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
typeHierarchy
Returns the value of thetypeHierarchy
record component.- Returns:
- the value of the
typeHierarchy
record component
-
containmentHierarchy
Returns the value of thecontainmentHierarchy
record component.- Returns:
- the value of the
containmentHierarchy
record component
-
directedCrossReferences
Returns the value of thedirectedCrossReferences
record component.- Returns:
- the value of the
directedCrossReferences
record component
-
undirectedCrossReferences
Returns the value of theundirectedCrossReferences
record component.- Returns:
- the value of the
undirectedCrossReferences
record component
-
oppositeReferences
Returns the value of theoppositeReferences
record component.- Returns:
- the value of the
oppositeReferences
record component
-