Record Class CachedEventCameraTremor

java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventCameraTremor
All Implemented Interfaces:
CacheableObject<CachedEventCameraTremor>, EventCameraTremor

public record CachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4) extends Record implements EventCameraTremor
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4)
    Creates an instance of a CachedEventCameraTremor record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the field1 record component.
    int
    Returns the value of the field2 record component.
    int
    Returns the value of the field3 record component.
    int
    Returns the value of the field4 record component.
    int
    Returns the value of the frame record component.
    final int
    Returns a hash code value for this object.
    boolean
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • CachedEventCameraTremor

      public CachedEventCameraTremor(int frame, int field1, int field2, int field3, int field4)
      Creates an instance of a CachedEventCameraTremor record class.
      Parameters:
      frame - the value for the frame record component
      field1 - the value for the field1 record component
      field2 - the value for the field2 record component
      field3 - the value for the field3 record component
      field4 - the value for the field4 record component
  • Method Details

    • cache

      @NotNull public @NotNull CachedEventCameraTremor cache()
      Specified by:
      cache in interface CacheableObject<CachedEventCameraTremor>
    • isCached

      public boolean isCached()
      Specified by:
      isCached in interface CacheableObject<CachedEventCameraTremor>
    • 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 '=='.
      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.
    • frame

      public int frame()
      Returns the value of the frame record component.
      Specified by:
      frame in interface EventCameraTremor
      Returns:
      the value of the frame record component
    • field1

      public int field1()
      Returns the value of the field1 record component.
      Specified by:
      field1 in interface EventCameraTremor
      Returns:
      the value of the field1 record component
    • field2

      public int field2()
      Returns the value of the field2 record component.
      Specified by:
      field2 in interface EventCameraTremor
      Returns:
      the value of the field2 record component
    • field3

      public int field3()
      Returns the value of the field3 record component.
      Specified by:
      field3 in interface EventCameraTremor
      Returns:
      the value of the field3 record component
    • field4

      public int field4()
      Returns the value of the field4 record component.
      Specified by:
      field4 in interface EventCameraTremor
      Returns:
      the value of the field4 record component