Record Class LeaderEntry
java.lang.Object
java.lang.Record
xericker.arenalegends.gameplay.leaderboard.LeaderEntry
-
Constructor Summary
ConstructorsConstructorDescriptionLeaderEntry(int rank, UUID uuid, String name, long value) Creates an instance of aLeaderEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.intrank()Returns the value of therankrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.longvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
LeaderEntry
Creates an instance of aLeaderEntryrecord class.- Parameters:
rank- the value for therankrecord componentuuid- the value for theuuidrecord componentname- the value for thenamerecord componentvalue- the value for thevaluerecord 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. -
rank
public int rank()Returns the value of therankrecord component.- Returns:
- the value of the
rankrecord component
-
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
public long value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-