Record Class SymbolEquivalenceClass<T>
java.lang.Object
java.lang.Record
tools.refinery.store.model.internal.SymbolEquivalenceClass<T>
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolEquivalenceClass(int arity, Class<T> valueType, T defaultValue) Creates an instance of aSymbolEquivalenceClassrecord class.SymbolEquivalenceClass(Symbol<T> symbol) -
Method Summary
Modifier and TypeMethodDescriptionintarity()Returns the value of thearityrecord component.Returns the value of thedefaultValuerecord 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.Returns the value of thevalueTyperecord component.
-
Constructor Details
-
SymbolEquivalenceClass
-
SymbolEquivalenceClass
Creates an instance of aSymbolEquivalenceClassrecord class.- Parameters:
arity- the value for thearityrecord componentvalueType- the value for thevalueTyperecord componentdefaultValue- the value for thedefaultValuerecord 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. -
arity
public int arity()Returns the value of thearityrecord component.- Returns:
- the value of the
arityrecord component
-
valueType
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-