[MDSAL-798] InstanceIdentifierBuilder should be variadic to KeyedInstanceIdentifier Created: 05/Dec/22 Updated: 24/Mar/23 Resolved: 24/Mar/23 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding Spec |
| Affects Version/s: | None |
| Fix Version/s: | 12.0.0 |
| Type: | Improvement | Priority: | High |
| Reporter: | Robert Varga | Assignee: | Matúš Matok |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
There are a number of places which use something like: InstanceIdentifier.builder(NetworkTopology.class) .child(Topology.class, new TopologyKey(new TopologyId("someName"))) .build() The here the result of build() results in InstanceIdentifier<Topology>, whereas we statically know it results in KeyedInstanceIdentifier<Topology, TopologyKey>. Provide an specialization of InstanceIdentifierBuilder, whose build() method results in KeyedInstanceIdentifier and return that builder from keyed child() methods. |