Record Class PlayTime
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.PlayTime
public record PlayTime(int id, int playerId, long first, long last, long total, int sessions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlayTime(int id, int playerId, long first, long last, long total, int sessions) Creates an instance of aPlayTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.longlast()Returns the value of thelastrecord component.intplayerId()Returns the value of theplayerIdrecord component.intsessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
PlayTime
public PlayTime(int id, int playerId, long first, long last, long total, int sessions) Creates an instance of aPlayTimerecord class.- Parameters:
id- the value for theidrecord componentplayerId- the value for theplayerIdrecord componentfirst- the value for thefirstrecord componentlast- the value for thelastrecord componenttotal- the value for thetotalrecord componentsessions- the value for thesessionsrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
playerId
public int playerId()Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
first
public long first()Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
public long last()Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
sessions
public int sessions()Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-