Record Class PlayTime
java.lang.Object
java.lang.Record
net.flectone.pulse.model.value.PlayTime
- Record Components:
id- the database idplayerId- the player this row belongs tofirst- when the player was first seen, in millisecondslast- when the player was last seen, in millisecondstotal- the total time played, in millisecondssessions- how many times the player has joined
public record PlayTime(int id, int playerId, long first, long last, long total, int sessions)
extends Record
Aggregated session statistics for a single player.
-
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
-
playerId
-
first
-
last
-
total
-
sessions
-