Record Class InMemoryNotificationService.ActiveBar
java.lang.Object
java.lang.Record
com.ultikits.ultitools.services.impl.InMemoryNotificationService.ActiveBar
- Enclosing class:
InMemoryNotificationService
private static record InMemoryNotificationService.ActiveBar(net.kyori.adventure.bossbar.BossBar bar, TaskHandle countdown)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.kyori.adventure.bossbar.BossBarThe field for thebarrecord component.private final TaskHandleThe field for thecountdownrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateActiveBar(net.kyori.adventure.bossbar.BossBar bar, TaskHandle countdown) Creates an instance of aActiveBarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.bossbar.BossBarbar()Returns the value of thebarrecord component.Returns the value of thecountdownrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
bar
private final net.kyori.adventure.bossbar.BossBar barThe field for thebarrecord component. -
countdown
The field for thecountdownrecord component.
-
-
Constructor Details
-
ActiveBar
Creates an instance of aActiveBarrecord class.- Parameters:
bar- the value for thebarrecord componentcountdown- the value for thecountdownrecord 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). -
bar
public net.kyori.adventure.bossbar.BossBar bar()Returns the value of thebarrecord component.- Returns:
- the value of the
barrecord component
-
countdown
Returns the value of thecountdownrecord component.- Returns:
- the value of the
countdownrecord component
-