[YANGTOOLS-420] YangInstanceIdentifier builder: allow adding PathArgument nodes Created: 12/Mar/15 Updated: 10/Apr/22 Resolved: 27/Aug/15 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Description |
|
Adding pre-constructed PathArguments onto a builder can be useful, as it allows us to share object instances with other code. Instantiating a builder is advantegeous when we want to pre-construct a YangInstanceIdentifier for reuse. Right now I have to do the following: Where I should be able to do the following: newTablesRoot = YangInstanceIdentifier.builder(newPeerPath).node(EMPTY_ADJRIBIN.getIdentifier()).node(TABLES).build(); Which is more efficient. |
| Comments |
| Comment by Robert Varga [ 27/Aug/15 ] |