Record Class Arena.TopGame
java.lang.Object
java.lang.Record
chariot.model.Arena.TopGame
- Enclosing class:
Arena
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblackNamerecord component.intReturns the value of theblackRankrecord component.intReturns the value of theblackRatingrecord component.Returns the value of theblackTeamIdrecord component.final booleanIndicates whether some other object is "equal to" this one.gameId()Returns the value of thegameIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thewhiteNamerecord component.intReturns the value of thewhiteRankrecord component.intReturns the value of thewhiteRatingrecord component.Returns the value of thewhiteTeamIdrecord component.
-
Constructor Details
-
TopGame
public TopGame(String gameId, String whiteName, int whiteRating, int whiteRank, String blackName, int blackRating, int blackRank, Opt<String> whiteTeamId, Opt<String> blackTeamId) Creates an instance of aTopGamerecord class.- Parameters:
gameId- the value for thegameIdrecord componentwhiteName- the value for thewhiteNamerecord componentwhiteRating- the value for thewhiteRatingrecord componentwhiteRank- the value for thewhiteRankrecord componentblackName- the value for theblackNamerecord componentblackRating- the value for theblackRatingrecord componentblackRank- the value for theblackRankrecord componentwhiteTeamId- the value for thewhiteTeamIdrecord componentblackTeamId- the value for theblackTeamIdrecord 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. -
gameId
Returns the value of thegameIdrecord component.- Returns:
- the value of the
gameIdrecord component
-
whiteName
Returns the value of thewhiteNamerecord component.- Returns:
- the value of the
whiteNamerecord component
-
whiteRating
public int whiteRating()Returns the value of thewhiteRatingrecord component.- Returns:
- the value of the
whiteRatingrecord component
-
whiteRank
public int whiteRank()Returns the value of thewhiteRankrecord component.- Returns:
- the value of the
whiteRankrecord component
-
blackName
Returns the value of theblackNamerecord component.- Returns:
- the value of the
blackNamerecord component
-
blackRating
public int blackRating()Returns the value of theblackRatingrecord component.- Returns:
- the value of the
blackRatingrecord component
-
blackRank
public int blackRank()Returns the value of theblackRankrecord component.- Returns:
- the value of the
blackRankrecord component
-
whiteTeamId
-
blackTeamId
-