Record Class RetentionData
java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.RetentionData
-
Constructor Summary
ConstructorsConstructorDescriptionRetentionData(UUID playerUUID, long registerDate, long lastSeenDate, long playtime) RetentionData(UUID playerUUID, long registerDate, long lastSeenDate, long playtime, long timeDifference) Creates an instance of aRetentionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastSeenDaterecord component.Returns the value of theplayerUUIDrecord component.longplaytime()Returns the value of theplaytimerecord component.longReturns the value of theregisterDaterecord component.longReturns the value of thetimeDifferencerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RetentionData
-
RetentionData
public RetentionData(UUID playerUUID, long registerDate, long lastSeenDate, long playtime, long timeDifference) Creates an instance of aRetentionDatarecord class.- Parameters:
playerUUID- the value for theplayerUUIDrecord componentregisterDate- the value for theregisterDaterecord componentlastSeenDate- the value for thelastSeenDaterecord componentplaytime- the value for theplaytimerecord componenttimeDifference- the value for thetimeDifferencerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerUUID
Returns the value of theplayerUUIDrecord component.- Returns:
- the value of the
playerUUIDrecord component
-
registerDate
public long registerDate()Returns the value of theregisterDaterecord component.- Returns:
- the value of the
registerDaterecord component
-
lastSeenDate
public long lastSeenDate()Returns the value of thelastSeenDaterecord component.- Returns:
- the value of the
lastSeenDaterecord component
-
playtime
public long playtime()Returns the value of theplaytimerecord component.- Returns:
- the value of the
playtimerecord component
-
timeDifference
public long timeDifference()Returns the value of thetimeDifferencerecord component.- Returns:
- the value of the
timeDifferencerecord component
-