Record Class ItemEvent

java.lang.Object
java.lang.Record
dev.adlin.vts4j.core.event.impl.ItemEvent
All Implemented Interfaces:
Event

public record ItemEvent(String itemEventType, String itemInstanceID, String itemFileName, com.google.gson.JsonObject itemPosition) extends Record implements Event
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemEvent(String itemEventType, String itemInstanceID, String itemFileName, com.google.gson.JsonObject itemPosition)
    Creates an instance of a ItemEvent record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the itemEventType record component.
    Returns the value of the itemFileName record component.
    Returns the value of the itemInstanceID record component.
    com.google.gson.JsonObject
    Returns the value of the itemPosition record component.
    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

    • ItemEvent

      public ItemEvent(String itemEventType, String itemInstanceID, String itemFileName, com.google.gson.JsonObject itemPosition)
      Creates an instance of a ItemEvent record class.
      Parameters:
      itemEventType - the value for the itemEventType record component
      itemInstanceID - the value for the itemInstanceID record component
      itemFileName - the value for the itemFileName record component
      itemPosition - the value for the itemPosition 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 Objects::equals(Object,Object).
      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.
    • itemEventType

      @SerializedName("itemEventType") public String itemEventType()
      Returns the value of the itemEventType record component.
      Returns:
      the value of the itemEventType record component
    • itemInstanceID

      @SerializedName("itemInstanceID") public String itemInstanceID()
      Returns the value of the itemInstanceID record component.
      Returns:
      the value of the itemInstanceID record component
    • itemFileName

      @SerializedName("itemFileName") public String itemFileName()
      Returns the value of the itemFileName record component.
      Returns:
      the value of the itemFileName record component
    • itemPosition

      @SerializedName("itemPosition") public com.google.gson.JsonObject itemPosition()
      Returns the value of the itemPosition record component.
      Returns:
      the value of the itemPosition record component