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

Allow OffsetMaps to be efficiently instantiated

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 2.0.13, 2.1.4
    • None
    • None

    Description

      It would be nice if we could directly instantiate OffsetMaps. While we currently provide copyOf() operations, it would be nice if the users could, use a scratch space builder, where they pre-assign offsets.

      This is useful for situations where the keySet is known and we are performing a transformation - hence a transformedFrom() would be sufficient, but perhaps we can provide an efficient way of caching the key->offset map, too, so that that lookup/cache is not needed.

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: