Record Class ActionEntry

java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.ActionEntry
Record Components:
actionId - the action type ID
param1 - first action parameter
param2 - second action parameter
param3 - third action parameter
timestamp - 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

    Constructors
    Constructor
    Description
    ActionEntry(int actionId, int param1, int param2, int param3, long timestamp, long delta)
    Creates an instance of a ActionEntry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the actionId record component.
    long
    Returns the value of the delta record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the param1 record component.
    int
    Returns the value of the param2 record component.
    int
    Returns the value of the param3 record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ActionEntry

      public ActionEntry(int actionId, int param1, int param2, int param3, long timestamp, long delta)
      Creates an instance of a ActionEntry record class.
      Parameters:
      actionId - the value for the actionId record component
      param1 - the value for the param1 record component
      param2 - the value for the param2 record component
      param3 - the value for the param3 record component
      timestamp - the value for the timestamp record component
      delta - the value for the delta record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • actionId

      public int actionId()
      Returns the value of the actionId record component.
      Returns:
      the value of the actionId record component
    • param1

      public int param1()
      Returns the value of the param1 record component.
      Returns:
      the value of the param1 record component
    • param2

      public int param2()
      Returns the value of the param2 record component.
      Returns:
      the value of the param2 record component
    • param3

      public int param3()
      Returns the value of the param3 record component.
      Returns:
      the value of the param3 record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • delta

      public long delta()
      Returns the value of the delta record component.
      Returns:
      the value of the delta record component