Package com.vaadin.signals
Record Class Node.Data
java.lang.Object
java.lang.Record
com.vaadin.signals.Node.Data
- Record Components:
parent- the parent id, ornullfor the root nodelastUpdate- a unique id for the update that last updated this data node, notnullscopeOwner- the id of the external owner of this node, ornullif the node has no owner. Any node with an owner is deleted if the owner is disconnected.value- the JSON value of this node, ornullif there is no valuelistChildren- a list of child ids, or an empty list if the node has no list childrenmapChildren- a sequenced map from key to child id, or an empty map if the node has no map children
- All Implemented Interfaces:
Node
- Enclosing interface:
Node
public static record Node.Data(Id parent, Id lastUpdate, Id scopeOwner, tools.jackson.databind.JsonNode value, List<Id> listChildren, Map<String,Id> mapChildren)
extends Record
implements Node
A data node. The node represents the actual data behind a signal
instance. The value of a node is made up of three different components:
- a leaf value for when the node is used as a value signal
- a list of children for when the node is used as a list signal
- a map of children for when the node is used as a map signal
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.signals.Node
Node.Alias, Node.Data -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastUpdaterecord component.Returns the value of thelistChildrenrecord component.Returns the value of themapChildrenrecord component.parent()Returns the value of theparentrecord component.Returns the value of thescopeOwnerrecord component.final StringtoString()Returns a string representation of this record class.tools.jackson.databind.JsonNodevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Data
public Data(Id parent, Id lastUpdate, Id scopeOwner, tools.jackson.databind.JsonNode value, List<Id> listChildren, Map<String, Id> mapChildren) Creates a new data node.- Parameters:
parent- the parent id, ornullfor the root nodelastUpdate- a unique id for the update that last updated this data node, notnullscopeOwner- the id of the external owner of this node, ornullif the node has no owner. Any node with an owner is deleted if the owner is disconnected.value- the JSON value of this node, ornullif there is no valuelistChildren- a list of child ids, or an empty list if the node has no list childrenmapChildren- a sequenced map from key to child id, or an empty map if the node has no map children
-
-
Method Details
-
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). -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
lastUpdate
Returns the value of thelastUpdaterecord component.- Returns:
- the value of the
lastUpdaterecord component
-
scopeOwner
Returns the value of thescopeOwnerrecord component.- Returns:
- the value of the
scopeOwnerrecord component
-
value
public tools.jackson.databind.JsonNode value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
listChildren
Returns the value of thelistChildrenrecord component.- Returns:
- the value of the
listChildrenrecord component
-
mapChildren
Returns the value of themapChildrenrecord component.- Returns:
- the value of the
mapChildrenrecord component
-