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 theblackName
record component.int
Returns the value of theblackRank
record component.int
Returns the value of theblackRating
record component.Returns the value of theblackTeamId
record component.final boolean
Indicates whether some other object is "equal to" this one.gameId()
Returns the value of thegameId
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thewhiteName
record component.int
Returns the value of thewhiteRank
record component.int
Returns the value of thewhiteRating
record component.Returns the value of thewhiteTeamId
record 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 aTopGame
record class.- Parameters:
gameId
- the value for thegameId
record componentwhiteName
- the value for thewhiteName
record componentwhiteRating
- the value for thewhiteRating
record componentwhiteRank
- the value for thewhiteRank
record componentblackName
- the value for theblackName
record componentblackRating
- the value for theblackRating
record componentblackRank
- the value for theblackRank
record componentwhiteTeamId
- the value for thewhiteTeamId
record componentblackTeamId
- the value for theblackTeamId
record 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 thecompare
method from their corresponding wrapper classes. -
gameId
Returns the value of thegameId
record component.- Returns:
- the value of the
gameId
record component
-
whiteName
Returns the value of thewhiteName
record component.- Returns:
- the value of the
whiteName
record component
-
whiteRating
public int whiteRating()Returns the value of thewhiteRating
record component.- Returns:
- the value of the
whiteRating
record component
-
whiteRank
public int whiteRank()Returns the value of thewhiteRank
record component.- Returns:
- the value of the
whiteRank
record component
-
blackName
Returns the value of theblackName
record component.- Returns:
- the value of the
blackName
record component
-
blackRating
public int blackRating()Returns the value of theblackRating
record component.- Returns:
- the value of the
blackRating
record component
-
blackRank
public int blackRank()Returns the value of theblackRank
record component.- Returns:
- the value of the
blackRank
record component
-
whiteTeamId
-
blackTeamId
-