Record Class Symbol<T>
java.lang.Object
java.lang.Record
tools.refinery.store.representation.Symbol<T>
- All Implemented Interfaces:
AnySymbol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintarity()Returns the value of thearityrecord component.Returns the value of thedefaultValuerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static <T> Symbol<T> static <T> Symbol<T> @NotNull StringtoString()Returns a string representation of this record class.Returns the value of thevalueTyperecord component.
-
Constructor Details
-
Symbol
Creates an instance of aSymbolrecord class.- Parameters:
name- the value for thenamerecord componentarity- the value for thearityrecord componentvalueType- the value for thevalueTyperecord componentdefaultValue- the value for thedefaultValuerecord component
-
-
Method Details
-
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. -
hashCode
-
toString
-
of
-
of
-
of
-
name
-
arity
-
valueType
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-