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

Allow OffsetMaps to be efficiently instantiated

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Medium Medium
    • 2.0.13, 2.1.4
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: