Package dev.twilite.game.common
Record Class GameVals.Constant
java.lang.Object
java.lang.Record
dev.twilite.game.common.GameVals.Constant
- Enclosing class:
GameVals
public static record GameVals.Constant(String rawName, String className, String name, String qualifiedName)
extends Record
A resolved gameval constant name.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord 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 thequalifiedNamerecord component.rawName()Returns the value of therawNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Constant
Creates an instance of aConstantrecord class.- Parameters:
rawName- the value for therawNamerecord componentclassName- the value for theclassNamerecord componentname- the value for thenamerecord componentqualifiedName- the value for thequalifiedNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
rawName
Returns the value of therawNamerecord component.- Returns:
- the value of the
rawNamerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
qualifiedName
Returns the value of thequalifiedNamerecord component.- Returns:
- the value of the
qualifiedNamerecord component
-