Record Class CooldownRepository.CooldownKey
java.lang.Object
java.lang.Record
net.flectone.pulse.persistence.repository.CooldownRepository.CooldownKey
- Record Components:
playerUUID- the playercooldownClass- what the cooldown applies to
- Enclosing interface:
CooldownRepository
-
Constructor Summary
ConstructorsConstructorDescriptionCooldownKey(UUID playerUUID, String cooldownClass) Creates an instance of aCooldownKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecooldownClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerUUIDrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CooldownKey
Creates an instance of aCooldownKeyrecord class.- Parameters:
playerUUID- the value for theplayerUUIDrecord componentcooldownClass- the value for thecooldownClassrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
playerUUID
Returns the value of theplayerUUIDrecord component.- Returns:
- the value of the
playerUUIDrecord component
-
cooldownClass
Returns the value of thecooldownClassrecord component.- Returns:
- the value of the
cooldownClassrecord component
-