Record Class RelationDetail.Reference
java.lang.Object
java.lang.Record
tools.refinery.language.semantics.metadata.RelationDetail.Reference
- All Implemented Interfaces:
RelationDetail
- Enclosing interface:
RelationDetail
public static record RelationDetail.Reference(boolean isContainment)
extends Record
implements RelationDetail
-
Nested Class Summary
Nested classes/interfaces inherited from interface RelationDetail
RelationDetail.Attribute, RelationDetail.Class, RelationDetail.Computed, RelationDetail.Domain, RelationDetail.Function, RelationDetail.Opposite, RelationDetail.Predicate, RelationDetail.Reference -
Constructor Summary
ConstructorsConstructorDescriptionReference(boolean isContainment) Creates an instance of aReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisContainmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reference
public Reference(boolean isContainment) Creates an instance of aReferencerecord class.- Parameters:
isContainment- the value for theisContainmentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
isContainment
public boolean isContainment()Returns the value of theisContainmentrecord component.- Returns:
- the value of the
isContainmentrecord component
-