Interface SNodeReference


  • public interface SNodeReference
    Represents a unique global reference to a node. SNodeReferences are the only recommended way to keep references to nodes across subsequent read or write actions. While direct memory references get obsolete once an action finishes, SNodeReferences will consistently retrieve the same node.
    • Method Detail

      • resolve

        @Nullable
        SNode resolve​(SRepository repo)
        Find actual instance of the node represented by this pointer.
        Returns:
        node if known in the repository, or null
      • getModelReference

        @Nullable
        SModelReference getModelReference()
        Returns:
        pointer to the node's model, if known, or null
      • getNodeId

        @Nullable
        SNodeId getNodeId()
        Returns:
        identity of the node, if known, or null