Record Class CooldownStatus
java.lang.Object
java.lang.Record
gg.xp.xivsupport.events.state.combatstate.CooldownStatus
public record CooldownStatus(@NotNull CdTrackingKey cdKey, @Nullable AbilityUsedEvent used, @Nullable BuffApplied buff, @Nullable Instant replenishedAt)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCooldownStatus(@NotNull CdTrackingKey cdKey, @Nullable AbilityUsedEvent used, @Nullable BuffApplied buff, @Nullable Instant replenishedAt) Creates an instance of aCooldownStatusrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BuffAppliedbuff()Returns the value of thebuffrecord component.@NotNull CdTrackingKeycdKey()Returns the value of thecdKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable InstantReturns the value of thereplenishedAtrecord component.final StringtoString()Returns a string representation of this record class.@Nullable AbilityUsedEventused()Returns the value of theusedrecord component.
-
Constructor Details
-
CooldownStatus
public CooldownStatus(@NotNull @NotNull CdTrackingKey cdKey, @Nullable @Nullable AbilityUsedEvent used, @Nullable @Nullable BuffApplied buff, @Nullable @Nullable Instant replenishedAt) Creates an instance of aCooldownStatusrecord class.- Parameters:
cdKey- the value for thecdKeyrecord componentused- the value for theusedrecord componentbuff- the value for thebuffrecord componentreplenishedAt- the value for thereplenishedAtrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
cdKey
Returns the value of thecdKeyrecord component.- Returns:
- the value of the
cdKeyrecord component
-
used
Returns the value of theusedrecord component.- Returns:
- the value of the
usedrecord component
-
buff
Returns the value of thebuffrecord component.- Returns:
- the value of the
buffrecord component
-
replenishedAt
Returns the value of thereplenishedAtrecord component.- Returns:
- the value of the
replenishedAtrecord component
-