Record Class KitClaimState
java.lang.Object
java.lang.Record
fr.mathildeuh.youneedme.api.kits.KitClaimState
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKitClaimState(String kitId, long claimCount, long lastClaimedAt) Creates an instance of aKitClaimStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theclaimCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kitId()Returns the value of thekitIdrecord component.longReturns the value of thelastClaimedAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NEVER_CLAIMED
-
-
Constructor Details
-
KitClaimState
Creates an instance of aKitClaimStaterecord class.- Parameters:
kitId- the value for thekitIdrecord componentclaimCount- the value for theclaimCountrecord componentlastClaimedAt- the value for thelastClaimedAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
kitId
Returns the value of thekitIdrecord component.- Returns:
- the value of the
kitIdrecord component
-
claimCount
public long claimCount()Returns the value of theclaimCountrecord component.- Returns:
- the value of the
claimCountrecord component
-
lastClaimedAt
public long lastClaimedAt()Returns the value of thelastClaimedAtrecord component.- Returns:
- the value of the
lastClaimedAtrecord component
-