Record Class PlayerCache.KeepAliveRequest
java.lang.Object
java.lang.Record
com.zenith.cache.data.PlayerCache.KeepAliveRequest
- Enclosing class:
PlayerCache
-
Constructor Summary
ConstructorsConstructorDescriptionKeepAliveRequest(long receivedTime, long id) Creates an instance of aKeepAliveRequestrecord 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.longid()Returns the value of theidrecord component.longReturns the value of thereceivedTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeepAliveRequest
public KeepAliveRequest(long receivedTime, long id) Creates an instance of aKeepAliveRequestrecord class.- Parameters:
receivedTime- the value for thereceivedTimerecord componentid- the value for theidrecord 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. -
receivedTime
public long receivedTime()Returns the value of thereceivedTimerecord component.- Returns:
- the value of the
receivedTimerecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-