Record Class ActionEntry
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.ActionEntry
- Record Components:
actionId- the action type IDparam1- first action parameterparam2- second action parameterparam3- third action parametertimestamp- the time the action was executed (milliseconds since epoch)delta- the time elapsed since the previous action (milliseconds)
public record ActionEntry(int actionId, int param1, int param2, int param3, long timestamp, long delta)
extends Record
A historical record of an executed game action.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActionEntry(int actionId, int param1, int param2, int param3, long timestamp, long delta) Creates an instance of aActionEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintactionId()Returns the value of theactionIdrecord component.longdelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intparam1()Returns the value of theparam1record component.intparam2()Returns the value of theparam2record component.intparam3()Returns the value of theparam3record component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionEntry
public ActionEntry(int actionId, int param1, int param2, int param3, long timestamp, long delta) Creates an instance of aActionEntryrecord class.- Parameters:
actionId- the value for theactionIdrecord componentparam1- the value for theparam1record componentparam2- the value for theparam2record componentparam3- the value for theparam3record componenttimestamp- the value for thetimestamprecord componentdelta- the value for thedeltarecord 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. -
actionId
-
param1
-
param2
-
param3
-
timestamp
-
delta
-