Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-798

InstanceIdentifierBuilder should be variadic to KeyedInstanceIdentifier

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 12.0.0
    • None
    • Binding Spec

      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.

            matusmatok Matúš Matok
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: