Package gg.xp.xivdata.data
Record Class ZoneInfo
java.lang.Object
java.lang.Record
gg.xp.xivdata.data.ZoneInfo
- All Implemented Interfaces:
Serializable
public record ZoneInfo(int id, @Nullable String dutyName, @Nullable String placeName)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringdutyName()Returns the value of thedutyNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()@Nullable StringReturns the value of theplaceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ZoneInfo
Creates an instance of aZoneInforecord class.- Parameters:
id- the value for theidrecord componentdutyName- the value for thedutyNamerecord componentplaceName- the value for theplaceNamerecord component
-
-
Method Details
-
name
-
getCapitalizedName
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
dutyName
Returns the value of thedutyNamerecord component.- Returns:
- the value of the
dutyNamerecord component
-
placeName
Returns the value of theplaceNamerecord component.- Returns:
- the value of the
placeNamerecord component
-