Record Class SidebarModel

java.lang.Object
java.lang.Record
dev.deepcore.challenge.session.SidebarModel

public record SidebarModel(long bestOverall, long bestOverworldToNether, long bestNetherToBlaze, long bestBlazeToEnd, long bestNetherToEnd, long bestEndToDragon, int onlineCount, String phaseText, int readyCount) extends Record
Immutable sidebar data prepared by the session layer before UI rendering.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SidebarModel(long bestOverall, long bestOverworldToNether, long bestNetherToBlaze, long bestBlazeToEnd, long bestNetherToEnd, long bestEndToDragon, int onlineCount, String phaseText, int readyCount)
    Creates an instance of a SidebarModel record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the bestBlazeToEnd record component.
    long
    Returns the value of the bestEndToDragon record component.
    long
    Returns the value of the bestNetherToBlaze record component.
    long
    Returns the value of the bestNetherToEnd record component.
    long
    Returns the value of the bestOverall record component.
    long
    Returns the value of the bestOverworldToNether record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the onlineCount record component.
    Returns the value of the phaseText record component.
    int
    Returns the value of the readyCount record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SidebarModel

      public SidebarModel(long bestOverall, long bestOverworldToNether, long bestNetherToBlaze, long bestBlazeToEnd, long bestNetherToEnd, long bestEndToDragon, int onlineCount, String phaseText, int readyCount)
      Creates an instance of a SidebarModel record class.
      Parameters:
      bestOverall - the value for the bestOverall record component
      bestOverworldToNether - the value for the bestOverworldToNether record component
      bestNetherToBlaze - the value for the bestNetherToBlaze record component
      bestBlazeToEnd - the value for the bestBlazeToEnd record component
      bestNetherToEnd - the value for the bestNetherToEnd record component
      bestEndToDragon - the value for the bestEndToDragon record component
      onlineCount - the value for the onlineCount record component
      phaseText - the value for the phaseText record component
      readyCount - the value for the readyCount 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 '=='.
      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.
    • bestOverall

      public long bestOverall()
      Returns the value of the bestOverall record component.
      Returns:
      the value of the bestOverall record component
    • bestOverworldToNether

      public long bestOverworldToNether()
      Returns the value of the bestOverworldToNether record component.
      Returns:
      the value of the bestOverworldToNether record component
    • bestNetherToBlaze

      public long bestNetherToBlaze()
      Returns the value of the bestNetherToBlaze record component.
      Returns:
      the value of the bestNetherToBlaze record component
    • bestBlazeToEnd

      public long bestBlazeToEnd()
      Returns the value of the bestBlazeToEnd record component.
      Returns:
      the value of the bestBlazeToEnd record component
    • bestNetherToEnd

      public long bestNetherToEnd()
      Returns the value of the bestNetherToEnd record component.
      Returns:
      the value of the bestNetherToEnd record component
    • bestEndToDragon

      public long bestEndToDragon()
      Returns the value of the bestEndToDragon record component.
      Returns:
      the value of the bestEndToDragon record component
    • onlineCount

      public int onlineCount()
      Returns the value of the onlineCount record component.
      Returns:
      the value of the onlineCount record component
    • phaseText

      public String phaseText()
      Returns the value of the phaseText record component.
      Returns:
      the value of the phaseText record component
    • readyCount

      public int readyCount()
      Returns the value of the readyCount record component.
      Returns:
      the value of the readyCount record component