Package arez

Class Node

java.lang.Object
arez.Node
All Implemented Interfaces:
Disposable
Direct Known Subclasses:
ComputableValue, ObservableValue, Observer, Task

public abstract class Node extends Object implements Disposable
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 Details

    • getName

      @Nonnull public final String getName()
      Return the name of the node. This method should NOT be invoked unless Arez.areNamesEnabled() returns true.
      Returns:
      the name of the node.
    • getContext

      @Nonnull public final ArezContext getContext()
      Return the context that the node is associated with.
      Returns:
      the associated ArezContext.
    • toString

      @Nonnull public final String toString()
      Overrides:
      toString in class Object