Record Class RelationDetail.Opposite
java.lang.Object
java.lang.Record
tools.refinery.language.semantics.metadata.RelationDetail.Opposite
- All Implemented Interfaces:
RelationDetail
- Enclosing interface:
RelationDetail
public static record RelationDetail.Opposite(String of, boolean isContainer)
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
Constructors -
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 theisContainerrecord component.of()Returns the value of theofrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Opposite
Creates an instance of aOppositerecord class.- Parameters:
of- the value for theofrecord componentisContainer- the value for theisContainerrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
of
Returns the value of theofrecord component.- Returns:
- the value of the
ofrecord component
-
isContainer
public boolean isContainer()Returns the value of theisContainerrecord component.- Returns:
- the value of the
isContainerrecord component
-