Record Class ScoreRegistry.RecordScore
java.lang.Object
java.lang.Record
dev.despical.tntrun.game.scores.ScoreRegistry.RecordScore
- Enclosing class:
ScoreRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionRecordScore(UUID uuid, String playerName, int score) Creates an instance of aRecordScorerecord 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.Returns the value of theplayerNamerecord component.intscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
RecordScore
-
-
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. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
playerName
Returns the value of theplayerNamerecord component.- Returns:
- the value of the
playerNamerecord component
-
score
public int score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-