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 enum
static enum
-
Constructor Summary
ConstructorsConstructorDescriptionSubtextStateInfo
(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags) Creates an instance of aSubtextStateInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SubtextStateInfo
create
(SubtextStateInfo.State state, String message, Set<SubtextStateInfo.Flag> flags) static SubtextStateInfo
create
(SubtextStateInfo.State state, Set<SubtextStateInfo.Flag> flags) final boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.boolean
has
(SubtextStateInfo.Flag flag) final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.state()
Returns the value of thestate
record component.final String
toString()
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 aSubtextStateInfo
record class.- Parameters:
state
- the value for thestate
record componentmessage
- the value for themessage
record componentflags
- the value for theflags
record 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 thestate
record component.- Returns:
- the value of the
state
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
flags
Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-