Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-126

QName should define a total ordering

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      It seems to be very convenient to use QNames instead of strings for keys. Unfortunately this breaks as soon as we want to start comparing maps keyed by QNames, as there is no total ordering. A workaround of using QName.toString() exists, as well as defining an external comparator, but it would be very nice if QName were to implement Comparable<QName>.

      Attachments

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

        Activity

          People

            mvitez@cisco.com Martin Vitez
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: