[YANGTOOLS-1513] Modernize DataTreeCandidateNode methods Created: 28/May/23 Updated: 29/May/23 Resolved: 29/May/23 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | data-api |
| Affects Version/s: | None |
| Fix Version/s: | 11.0.0 |
| Type: | Task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
DataTreeCandidateNode uses 'get' prefix, which results in either a straight value or an Optional. Modernize parlance to reflect non-null attributes, with find() methods returning Optional. This will allow downstream users to select what kind of API they want: @Nullable or Optional, and it paves the way for having some implementations to be backed by simple records with no fuss. |