Record Class Destination
java.lang.Object
java.lang.Record
net.flectone.pulse.model.util.Destination
public record Destination(Destination.Type type, String subtext, BossBar bossBar, Times times, Toast toast, TextScreen textScreen)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BossBarstatic final Stringstatic final TextScreenstatic final Timesstatic final Toaststatic final Destination.Typestatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destinationstatic final Destination -
Constructor Summary
ConstructorsConstructorDescriptionDestination(Destination.Type type) Destination(Destination.Type type, String subtext, BossBar bossBar, Times times, Toast toast, TextScreen textScreen) Creates an instance of aDestinationrecord class.Destination(Destination.Type type, BossBar bossBar) Destination(Destination.Type type, TextScreen textScreen) Destination(Destination.Type type, Times times) Destination(Destination.Type type, Times times, String subtext) Destination(Destination.Type type, Toast toast, String subtext) -
Method Summary
Modifier and TypeMethodDescriptionbossBar()Returns the value of thebossBarrecord component.final booleanIndicates whether some other object is "equal to" this one.static Destinationfinal inthashCode()Returns a hash code value for this object.subtext()Returns the value of thesubtextrecord component.Returns the value of thetextScreenrecord component.times()Returns the value of thetimesrecord component.toast()Returns the value of thetoastrecord component.toJson()final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
DEFAULT_TYPE
-
DEFAULT_SUBTEXT
- See Also:
-
DEFAULT_BOSS_BAR
-
DEFAULT_TIMES
-
DEFAULT_TOAST
-
DEFAULT_TEXT_SCREEN
-
EMPTY_ACTION_BAR
-
EMPTY_BOSS_BAR
-
EMPTY_BRAND
-
EMPTY_CHAT
-
EMPTY_TITLE
-
EMPTY_SUBTITLE
-
EMPTY_TAB_HEADER
-
EMPTY_TAB_FOOTER
-
EMPTY_TEXT_SCREEN
-
EMPTY_TOAST
-
-
Constructor Details
-
Destination
public Destination(Destination.Type type, String subtext, BossBar bossBar, Times times, Toast toast, TextScreen textScreen) Creates an instance of aDestinationrecord class.- Parameters:
type- the value for thetyperecord componentsubtext- the value for thesubtextrecord componentbossBar- the value for thebossBarrecord componenttimes- the value for thetimesrecord componenttoast- the value for thetoastrecord componenttextScreen- the value for thetextScreenrecord component
-
Destination
-
Destination
-
Destination
-
Destination
-
Destination
-
Destination
-
-
Method Details
-
fromJson
-
toJson
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
subtext
Returns the value of thesubtextrecord component.- Returns:
- the value of the
subtextrecord component
-
bossBar
Returns the value of thebossBarrecord component.- Returns:
- the value of the
bossBarrecord component
-
times
Returns the value of thetimesrecord component.- Returns:
- the value of the
timesrecord component
-
toast
Returns the value of thetoastrecord component.- Returns:
- the value of the
toastrecord component
-
textScreen
Returns the value of thetextScreenrecord component.- Returns:
- the value of the
textScreenrecord component
-