Record Class ClaferModel.AliasValue
java.lang.Object
java.lang.Record
org.clafer.ig.ClaferModel.AliasValue
- All Implemented Interfaces:
ClaferModel.Value
- Enclosing class:
ClaferModel
public static record ClaferModel.AliasValue(ClaferModel.Id alias)
extends Record
implements ClaferModel.Value
-
Constructor Summary
ConstructorsConstructorDescriptionAliasValue(ClaferModel.Id alias) Creates an instance of aAliasValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AliasValue
Creates an instance of aAliasValuerecord class.- Parameters:
alias- the value for thealiasrecord 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 withObjects::equals(Object,Object). -
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-