Package arez
Class Node
java.lang.Object
arez.Node
- All Implemented Interfaces:
Disposable
- Direct Known Subclasses:
ComputableValue
,ObservableValue
,Observer
,Task
A node within an Arez dependency graph.
The node is a named element within a specific Arez system that forms part of the
dependency graph.
The Node class can be extended by classes outside the Arez core package. Typically this is done when a collection of primitive types (i.e. Observables, Observers, ComputableValues etc) are aggregated to form a single abstraction within the reactive system.
-
Method Summary
Modifier and TypeMethodDescriptionfinal ArezContext
Return the context that the node is associated with.final String
getName()
Return the name of the node.final String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface arez.Disposable
dispose, isDisposed, isNotDisposed
-
Method Details
-
getName
Return the name of the node. This method should NOT be invoked unlessArez.areNamesEnabled()
returnstrue
.- Returns:
- the name of the node.
-
getContext
Return the context that the node is associated with.- Returns:
- the associated ArezContext.
-
toString
-