Record Class BreakEndedEvent
java.lang.Object
java.lang.Record
com.botwithus.bot.api.event.BreakEndedEvent
- Record Components:
timestamp- event creation time in milliseconds since epoch
- All Implemented Interfaces:
GameEvent
-
Constructor Summary
ConstructorsConstructorDescriptionBreakEndedEvent(long timestamp) Creates an instance of aBreakEndedEventrecord 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 thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BreakEndedEvent
public BreakEndedEvent() -
BreakEndedEvent
public BreakEndedEvent(long timestamp) Creates an instance of aBreakEndedEventrecord 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
-