Record Class SubtextStateInfo
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.designer.ui.viewmodel.SubtextStateInfo
- Record Components:
state-supplementalText-flags-
public record SubtextStateInfo(SubtextStateInfo.State state, String supplementalText, Set<SubtextStateInfo.Flag> flags)
extends Record
Holds the state information for use with the
InformationSubtextPanel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionSubtextStateInfo(SubtextStateInfo.State state, String supplementalText, Set<SubtextStateInfo.Flag> flags) Creates an instance of aSubtextStateInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubtextStateInfocreate(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags) static SubtextStateInfocreate(SubtextStateInfo.State state, Set<SubtextStateInfo.Flag> flags) final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.booleanhas(SubtextStateInfo.Flag flag) final inthashCode()Returns a hash code value for this object.static SubtextStateInfoof(EventStreamState state, Set<SubtextStateInfo.Flag> flags) state()Returns the value of thestaterecord component.Returns the value of thesupplementalTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubtextStateInfo
public SubtextStateInfo(SubtextStateInfo.State state, String supplementalText, Set<SubtextStateInfo.Flag> flags) Creates an instance of aSubtextStateInforecord class.- Parameters:
state- the value for thestaterecord componentsupplementalText- the value for thesupplementalTextrecord componentflags- the value for theflagsrecord component
-
-
Method Details
-
has
-
create
public static SubtextStateInfo create(SubtextStateInfo.State state, Set<SubtextStateInfo.Flag> flags) -
create
public static SubtextStateInfo create(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags) -
of
-
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). -
state
-
supplementalText
Returns the value of thesupplementalTextrecord component.- Returns:
- the value of the
supplementalTextrecord component
-
flags
-