Record Class CooldownResult.Ready
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.cooldown.CooldownResult.Ready
- All Implemented Interfaces:
CooldownResult
- Enclosing interface:
CooldownResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface CooldownResult
CooldownResult.Cooling, CooldownResult.Ready -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.ifCoolingLeft(BiConsumer<Long, TimeUnit> action) booleanisReady()onTick(long interval, TimeUnit unit, BiConsumer<Long, TimeUnit> action) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Ready
public Ready()Creates an instance of aReadyrecord class.
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReadyin interfaceCooldownResult
-
ifReady
- Specified by:
ifReadyin interfaceCooldownResult
-
ifCoolingLeft
- Specified by:
ifCoolingLeftin interfaceCooldownResult
-
onExpire
- Specified by:
onExpirein interfaceCooldownResult
-
onTick
- Specified by:
onTickin interfaceCooldownResult
-
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.
-