Record Class ReconnectState.Connected
java.lang.Object
java.lang.Record
com.botwithus.bot.api.runtime.ReconnectState.Connected
- All Implemented Interfaces:
ReconnectState
- Enclosing interface:
ReconnectState
public static record ReconnectState.Connected(long timestamp)
extends Record
implements ReconnectState
-
Nested Class Summary
Nested classes/interfaces inherited from interface ReconnectState
ReconnectState.Connected, ReconnectState.Disconnected, ReconnectState.GivingUp, ReconnectState.Reconnecting -
Constructor Summary
Constructors -
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 thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Connected
public Connected(long timestamp) Creates an instance of aConnectedrecord class.- Parameters:
timestamp- the value for thetimestamprecord 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. -
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Specified by:
timestampin interfaceReconnectState- Returns:
- the value of the
timestamprecord component
-