[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:
Blocks
is blocked by MDSAL-818 Wildcard KeyedInstanceIdentifier cann... Resolved
Relates
relates to MDSAL-815 Add binding.api.(Keyed)Instance{Ident... Confirmed

 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.


Generated at Wed Feb 07 20:11:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.