Record Class RelationMetadata
java.lang.Object
java.lang.Record
tools.refinery.language.semantics.metadata.RelationMetadata
- All Implemented Interfaces:
Metadata
public record RelationMetadata(String name, String simpleName, int arity, @Nullable List<String> parameterNames, RelationDetail detail, @Nullable Visibility visibility, @Nullable String dataType)
extends Record
implements Metadata
-
Constructor Summary
ConstructorsConstructorDescriptionRelationMetadata(String name, String simpleName, int arity, @Nullable List<String> parameterNames, RelationDetail detail, @Nullable Visibility visibility, @Nullable String dataType) Creates an instance of aRelationMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintarity()Returns the value of thearityrecord component.@Nullable StringdataType()Returns the value of thedataTyperecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theparameterNamesrecord component.Returns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable VisibilityReturns the value of thevisibilityrecord component.
-
Constructor Details
-
RelationMetadata
public RelationMetadata(String name, String simpleName, int arity, @Nullable @Nullable List<String> parameterNames, RelationDetail detail, @Nullable @Nullable Visibility visibility, @Nullable @Nullable String dataType) Creates an instance of aRelationMetadatarecord class.- Parameters:
name- the value for thenamerecord componentsimpleName- the value for thesimpleNamerecord componentarity- the value for thearityrecord componentparameterNames- the value for theparameterNamesrecord componentdetail- the value for thedetailrecord componentvisibility- the value for thevisibilityrecord componentdataType- the value for thedataTyperecord component
-
-
Method Details
-
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 '=='. -
name
Returns the value of thenamerecord component. -
simpleName
Returns the value of thesimpleNamerecord component.- Specified by:
simpleNamein interfaceMetadata- Returns:
- the value of the
simpleNamerecord component
-
arity
public int arity()Returns the value of thearityrecord component.- Returns:
- the value of the
arityrecord component
-
parameterNames
Returns the value of theparameterNamesrecord component.- Returns:
- the value of the
parameterNamesrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
visibility
Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-