Record Class TitleMessage
java.lang.Object
java.lang.Record
de.z0rdak.yawp.core.trigger.TitleMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTitleMessage(String title, String subTitle, String actionBarTitle, boolean enabled) Creates an instance of aTitleMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionBarTitlerecord component.static TitleMessagebooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subTitle()Returns the value of thesubTitlerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TitleMessage
Creates an instance of aTitleMessagerecord class.- Parameters:
title- the value for thetitlerecord componentsubTitle- the value for thesubTitlerecord componentactionBarTitle- the value for theactionBarTitlerecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
defaultInstance
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subTitle
Returns the value of thesubTitlerecord component.- Returns:
- the value of the
subTitlerecord component
-
actionBarTitle
Returns the value of theactionBarTitlerecord component.- Returns:
- the value of the
actionBarTitlerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-