Package com.enhancedechest.storage
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
One
enderchests row read verbatim from a source database for EnderChestStorage.importRows(java.util.List<com.enhancedechest.storage.EnderChestStorage.RawPlayerRow>, java.util.List<com.enhancedechest.storage.EnderChestStorage.RawChestRow>).-
Constructor Summary
ConstructorsConstructorDescriptionRawChestRow(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 aRawChestRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechestIndexrecord component.@org.jetbrains.annotations.Nullable byte[]Returns the value of thecontainerDatarecord component.@Nullable StringReturns the value of thecustomNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable LongReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringicon()Returns the value of theiconrecord component.intReturns the value of theisPrimaryrecord component.intkind()Returns the value of thekindrecord component.longReturns the value of thelastUpdatedrecord component.intmigrated()Returns the value of themigratedrecord component.Returns the value of theplayerUuidrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aRawChestRowrecord class.- Parameters:
playerUuid- the value for theplayerUuidrecord componentchestIndex- the value for thechestIndexrecord componentsize- the value for thesizerecord componentcustomName- the value for thecustomNamerecord componentisPrimary- the value for theisPrimaryrecord componentcontainerData- the value for thecontainerDatarecord componentmigrated- the value for themigratedrecord componentlastUpdated- the value for thelastUpdatedrecord componentkind- the value for thekindrecord componentexpiresAt- the value for theexpiresAtrecord componenticon- the value for theiconrecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
playerUuid
Returns the value of theplayerUuidrecord component.- Returns:
- the value of the
playerUuidrecord component
-
chestIndex
public int chestIndex()Returns the value of thechestIndexrecord component.- Returns:
- the value of the
chestIndexrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
customName
Returns the value of thecustomNamerecord component.- Returns:
- the value of the
customNamerecord component
-
isPrimary
public int isPrimary()Returns the value of theisPrimaryrecord component.- Returns:
- the value of the
isPrimaryrecord component
-
containerData
@Nullable public @org.jetbrains.annotations.Nullable byte[] containerData()Returns the value of thecontainerDatarecord component.- Returns:
- the value of the
containerDatarecord component
-
migrated
public int migrated()Returns the value of themigratedrecord component.- Returns:
- the value of the
migratedrecord component
-
lastUpdated
public long lastUpdated()Returns the value of thelastUpdatedrecord component.- Returns:
- the value of the
lastUpdatedrecord component
-
kind
public int kind()Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-