Record Class ClaferModel.Id
java.lang.Object
java.lang.Record
org.clafer.ig.ClaferModel.Id
- All Implemented Interfaces:
Comparable<ClaferModel.Id>
- Enclosing class:
ClaferModel
public static record ClaferModel.Id(String name, int ordinal)
extends Record
implements Comparable<ClaferModel.Id>
The tuple of name and ordinal is globally unique.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal 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.intordinal()Returns the value of theordinalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Id
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ClaferModel.Id>
-
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. -
name
-
ordinal
Returns the value of theordinalrecord component.- Returns:
- the value of the
ordinalrecord component
-