Record Class SubtextStateInfo
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.designer.ui.viewmodel.SubtextStateInfo
public record SubtextStateInfo(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionSubtextStateInfo(SubtextStateInfo.State state, String message, 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.message()Returns the value of themessagerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubtextStateInfo
public SubtextStateInfo(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags) Creates an instance of aSubtextStateInforecord class.- Parameters:
state- the value for thestaterecord componentmessage- the value for themessagerecord 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) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-