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
ConstructorDescriptionCooldownStatus
(@NotNull CdTrackingKey cdKey, @Nullable AbilityUsedEvent used, @Nullable BuffApplied buff, @Nullable Instant replenishedAt) Creates an instance of aCooldownStatus
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BuffApplied
buff()
Returns the value of thebuff
record component.@NotNull CdTrackingKey
cdKey()
Returns the value of thecdKey
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable Instant
Returns the value of thereplenishedAt
record component.final String
toString()
Returns a string representation of this record class.@Nullable AbilityUsedEvent
used()
Returns the value of theused
record 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 aCooldownStatus
record class.- Parameters:
cdKey
- the value for thecdKey
record componentused
- the value for theused
record componentbuff
- the value for thebuff
record componentreplenishedAt
- the value for thereplenishedAt
record 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 thecdKey
record component.- Returns:
- the value of the
cdKey
record component
-
used
Returns the value of theused
record component.- Returns:
- the value of the
used
record component
-
buff
Returns the value of thebuff
record component.- Returns:
- the value of the
buff
record component
-
replenishedAt
Returns the value of thereplenishedAt
record component.- Returns:
- the value of the
replenishedAt
record component
-