Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1181

Update StoreTreeNode methods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • None
    • None

      yang.data.api.schema.tree.StoreTreeNode.getChild() is forcing users to deal with optionals, where a lot of the time they would prefer to deal with a plain nullable.

      Update StoreTreeNode so that it has three methods:

      @Nullable TreeNode childByArg(PathArgument);
      
      @NonNull TreeNode getChildByArg(PathArgument); // throws VerifyException
      
      Optional<TreeNode> findChildByArg(PathArgument);
      

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: