Record Class EnderChestStorage.RawChestRow

java.lang.Object
java.lang.Record
com.enhancedechest.storage.EnderChestStorage.RawChestRow
Enclosing interface:
EnderChestStorage

public static record EnderChestStorage.RawChestRow(String playerUuid, int chestIndex, int size, @Nullable String customName, int isPrimary, @org.jetbrains.annotations.Nullable byte[] containerData, int migrated, long lastUpdated, int kind, @Nullable Long expiresAt, @Nullable String icon) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RawChestRow(String playerUuid, int chestIndex, int size, @Nullable String customName, int isPrimary, @org.jetbrains.annotations.Nullable byte[] containerData, int migrated, long lastUpdated, int kind, @Nullable Long expiresAt, @Nullable String icon)
    Creates an instance of a RawChestRow record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the chestIndex record component.
    @org.jetbrains.annotations.Nullable byte[]
    Returns the value of the containerData record component.
    @Nullable String
    Returns the value of the customName record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @Nullable Long
    Returns the value of the expiresAt record component.
    final int
    Returns a hash code value for this object.
    @Nullable String
    Returns the value of the icon record component.
    int
    Returns the value of the isPrimary record component.
    int
    Returns the value of the kind record component.
    long
    Returns the value of the lastUpdated record component.
    int
    Returns the value of the migrated record component.
    Returns the value of the playerUuid record component.
    int
    Returns the value of the size 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

    • RawChestRow

      public RawChestRow(String playerUuid, int chestIndex, int size, @Nullable @Nullable String customName, int isPrimary, @Nullable @org.jetbrains.annotations.Nullable byte[] containerData, int migrated, long lastUpdated, int kind, @Nullable @Nullable Long expiresAt, @Nullable @Nullable String icon)
      Creates an instance of a RawChestRow record class.
      Parameters:
      playerUuid - the value for the playerUuid record component
      chestIndex - the value for the chestIndex record component
      size - the value for the size record component
      customName - the value for the customName record component
      isPrimary - the value for the isPrimary record component
      containerData - the value for the containerData record component
      migrated - the value for the migrated record component
      lastUpdated - the value for the lastUpdated record component
      kind - the value for the kind record component
      expiresAt - the value for the expiresAt record component
      icon - the value for the icon 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • playerUuid

      public String playerUuid()
      Returns the value of the playerUuid record component.
      Returns:
      the value of the playerUuid record component
    • chestIndex

      public int chestIndex()
      Returns the value of the chestIndex record component.
      Returns:
      the value of the chestIndex record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • customName

      @Nullable public @Nullable String customName()
      Returns the value of the customName record component.
      Returns:
      the value of the customName record component
    • isPrimary

      public int isPrimary()
      Returns the value of the isPrimary record component.
      Returns:
      the value of the isPrimary record component
    • containerData

      @Nullable public @org.jetbrains.annotations.Nullable byte[] containerData()
      Returns the value of the containerData record component.
      Returns:
      the value of the containerData record component
    • migrated

      public int migrated()
      Returns the value of the migrated record component.
      Returns:
      the value of the migrated record component
    • lastUpdated

      public long lastUpdated()
      Returns the value of the lastUpdated record component.
      Returns:
      the value of the lastUpdated record component
    • kind

      public int kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • expiresAt

      @Nullable public @Nullable Long expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • icon

      @Nullable public @Nullable String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component