Record Class ReferenceInfo
java.lang.Object
java.lang.Record
tools.refinery.store.reasoning.translator.metamodel.ReferenceInfo
public record ReferenceInfo(boolean containment, PartialRelation sourceType, Multiplicity multiplicity, PartialRelation targetType, PartialRelation opposite, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets)
extends Record
-
Constructor Summary
ConstructorDescriptionReferenceInfo
(boolean containment, PartialRelation sourceType, Multiplicity multiplicity, PartialRelation targetType, PartialRelation opposite, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets) Creates an instance of aReferenceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceInfoBuilder
builder()
Returns the value of theconcretizationSettings
record component.boolean
Returns the value of thecontainment
record component.Returns the value of thedefaultValue
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 themultiplicity
record component.opposite()
Returns the value of theopposite
record component.Returns the value of thesourceType
record component.Returns the value of thesupersets
record component.Returns the value of thetargetType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ReferenceInfo
public ReferenceInfo(boolean containment, PartialRelation sourceType, Multiplicity multiplicity, PartialRelation targetType, PartialRelation opposite, TruthValue defaultValue, ConcretizationSettings concretizationSettings, Set<PartialRelation> supersets) Creates an instance of aReferenceInfo
record class.- Parameters:
containment
- the value for thecontainment
record componentsourceType
- the value for thesourceType
record componentmultiplicity
- the value for themultiplicity
record componenttargetType
- the value for thetargetType
record componentopposite
- the value for theopposite
record componentdefaultValue
- the value for thedefaultValue
record componentconcretizationSettings
- the value for theconcretizationSettings
record componentsupersets
- the value for thesupersets
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
containment
public boolean containment()Returns the value of thecontainment
record component.- Returns:
- the value of the
containment
record component
-
sourceType
Returns the value of thesourceType
record component.- Returns:
- the value of the
sourceType
record component
-
multiplicity
Returns the value of themultiplicity
record component.- Returns:
- the value of the
multiplicity
record component
-
targetType
Returns the value of thetargetType
record component.- Returns:
- the value of the
targetType
record component
-
opposite
Returns the value of theopposite
record component.- Returns:
- the value of the
opposite
record component
-
defaultValue
Returns the value of thedefaultValue
record component.- Returns:
- the value of the
defaultValue
record component
-
concretizationSettings
Returns the value of theconcretizationSettings
record component.- Returns:
- the value of the
concretizationSettings
record component
-
supersets
Returns the value of thesupersets
record component.- Returns:
- the value of the
supersets
record component
-