Record Class Arena.TopGame

java.lang.Object
java.lang.Record
chariot.model.Arena.TopGame
Enclosing class:
Arena

public static record Arena.TopGame(String gameId, String whiteName, int whiteRating, int whiteRank, String blackName, int blackRating, int blackRank, Opt<String> whiteTeamId, Opt<String> blackTeamId) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a TopGame record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the blackName record component.
    int
    Returns the value of the blackRank record component.
    int
    Returns the value of the blackRating record component.
    Returns the value of the blackTeamId record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the gameId record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    Returns the value of the whiteName record component.
    int
    Returns the value of the whiteRank record component.
    int
    Returns the value of the whiteRating record component.
    Returns the value of the whiteTeamId record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a TopGame record class.
      Parameters:
      gameId - the value for the gameId record component
      whiteName - the value for the whiteName record component
      whiteRating - the value for the whiteRating record component
      whiteRank - the value for the whiteRank record component
      blackName - the value for the blackName record component
      blackRating - the value for the blackRating record component
      blackRank - the value for the blackRank record component
      whiteTeamId - the value for the whiteTeamId record component
      blackTeamId - the value for the blackTeamId record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • gameId

      public String gameId()
      Returns the value of the gameId record component.
      Returns:
      the value of the gameId record component
    • whiteName

      public String whiteName()
      Returns the value of the whiteName record component.
      Returns:
      the value of the whiteName record component
    • whiteRating

      public int whiteRating()
      Returns the value of the whiteRating record component.
      Returns:
      the value of the whiteRating record component
    • whiteRank

      public int whiteRank()
      Returns the value of the whiteRank record component.
      Returns:
      the value of the whiteRank record component
    • blackName

      public String blackName()
      Returns the value of the blackName record component.
      Returns:
      the value of the blackName record component
    • blackRating

      public int blackRating()
      Returns the value of the blackRating record component.
      Returns:
      the value of the blackRating record component
    • blackRank

      public int blackRank()
      Returns the value of the blackRank record component.
      Returns:
      the value of the blackRank record component
    • whiteTeamId

      public Opt<String> whiteTeamId()
      Returns the value of the whiteTeamId record component.
      Returns:
      the value of the whiteTeamId record component
    • blackTeamId

      public Opt<String> blackTeamId()
      Returns the value of the blackTeamId record component.
      Returns:
      the value of the blackTeamId record component