Package com.enhancedechest.storage
Record Class StorageBackend.ExpiredKey
java.lang.Object
java.lang.Record
com.enhancedechest.storage.StorageBackend.ExpiredKey
- Enclosing interface:
StorageBackend
public static record StorageBackend.ExpiredKey(String playerUuid, int chestIndex, int kind)
extends Record
Primary key + kind of one expired
enderchests row, returned by StorageBackend.findExpired(long).-
Constructor Summary
ConstructorsConstructorDescriptionExpiredKey(String playerUuid, int chestIndex, int kind) Creates an instance of aExpiredKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechestIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkind()Returns the value of thekindrecord component.Returns the value of theplayerUuidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExpiredKey
Creates an instance of aExpiredKeyrecord class.- Parameters:
playerUuid- the value for theplayerUuidrecord componentchestIndex- the value for thechestIndexrecord componentkind- the value for thekindrecord 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
-
kind
public int kind()Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-