Package dev.deepcore.challenge.session
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
ConstructorsConstructorDescriptionSidebarModel(long bestOverall, long bestOverworldToNether, long bestNetherToBlaze, long bestBlazeToEnd, long bestNetherToEnd, long bestEndToDragon, int onlineCount, String phaseText, int readyCount) Creates an instance of aSidebarModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebestBlazeToEndrecord component.longReturns the value of thebestEndToDragonrecord component.longReturns the value of thebestNetherToBlazerecord component.longReturns the value of thebestNetherToEndrecord component.longReturns the value of thebestOverallrecord component.longReturns the value of thebestOverworldToNetherrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theonlineCountrecord component.Returns the value of thephaseTextrecord component.intReturns the value of thereadyCountrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aSidebarModelrecord class.- Parameters:
bestOverall- the value for thebestOverallrecord componentbestOverworldToNether- the value for thebestOverworldToNetherrecord componentbestNetherToBlaze- the value for thebestNetherToBlazerecord componentbestBlazeToEnd- the value for thebestBlazeToEndrecord componentbestNetherToEnd- the value for thebestNetherToEndrecord componentbestEndToDragon- the value for thebestEndToDragonrecord componentonlineCount- the value for theonlineCountrecord componentphaseText- the value for thephaseTextrecord componentreadyCount- the value for thereadyCountrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
bestOverall
public long bestOverall()Returns the value of thebestOverallrecord component.- Returns:
- the value of the
bestOverallrecord component
-
bestOverworldToNether
public long bestOverworldToNether()Returns the value of thebestOverworldToNetherrecord component.- Returns:
- the value of the
bestOverworldToNetherrecord component
-
bestNetherToBlaze
public long bestNetherToBlaze()Returns the value of thebestNetherToBlazerecord component.- Returns:
- the value of the
bestNetherToBlazerecord component
-
bestBlazeToEnd
public long bestBlazeToEnd()Returns the value of thebestBlazeToEndrecord component.- Returns:
- the value of the
bestBlazeToEndrecord component
-
bestNetherToEnd
public long bestNetherToEnd()Returns the value of thebestNetherToEndrecord component.- Returns:
- the value of the
bestNetherToEndrecord component
-
bestEndToDragon
public long bestEndToDragon()Returns the value of thebestEndToDragonrecord component.- Returns:
- the value of the
bestEndToDragonrecord component
-
onlineCount
public int onlineCount()Returns the value of theonlineCountrecord component.- Returns:
- the value of the
onlineCountrecord component
-
phaseText
Returns the value of thephaseTextrecord component.- Returns:
- the value of the
phaseTextrecord component
-
readyCount
public int readyCount()Returns the value of thereadyCountrecord component.- Returns:
- the value of the
readyCountrecord component
-