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

Update StoreTreeNode methods

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • None
    • None

    Description

      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);
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: