Record Class AutoReconnectEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.AutoReconnectEvent
-
Constructor Summary
ConstructorsConstructorDescriptionAutoReconnectEvent(int delaySeconds) Creates an instance of aAutoReconnectEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedelaySecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AutoReconnectEvent
public AutoReconnectEvent(int delaySeconds) Creates an instance of aAutoReconnectEventrecord class.- Parameters:
delaySeconds- the value for thedelaySecondsrecord 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. -
delaySeconds
public int delaySeconds()Returns the value of thedelaySecondsrecord component.- Returns:
- the value of the
delaySecondsrecord component
-