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

InstanceIdentifierBuilder should be variadic to KeyedInstanceIdentifier

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 12.0.0
    • Binding Spec

    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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: