Package com.vaadin.flow.signals.shared
Class SharedNodeSignal.SharedNodeSignalState
java.lang.Object
com.vaadin.flow.signals.shared.SharedNodeSignal.SharedNodeSignalState
- All Implemented Interfaces:
Serializable
- Enclosing class:
SharedNodeSignal
The snapshot of the state of a node signal. Gives access to the value and
child nodes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSharedNodeSignalState(@Nullable tools.jackson.databind.JsonNode value, @Nullable SharedNodeSignal parent, List<SharedNodeSignal> listChildren, Map<String, SharedNodeSignal> mapChildren) Creates a new state snapshot based on the given JSON value, list children and map children. -
Method Summary
Modifier and TypeMethodDescriptionGets a list with the children accessed by order.Gets a map of the children accessed by key.@Nullable SharedNodeSignalparent()Gets the parent node of this signal.<T> @Nullable TGets the value as the given type.
-
Constructor Details
-
Method Details
-
value
Gets the value as the given type.- Type Parameters:
T- the value type- Parameters:
valueType- the value type, notnull- Returns:
- the value, or
nullif there is no value
-
parent
Gets the parent node of this signal.- Returns:
- the parent node, or
nullfor the root node
-
listChildren
Gets a list with the children accessed by order.- Returns:
- a list of children, not
null
-
mapChildren
Gets a map of the children accessed by key.- Returns:
- a map of children, not
null
-