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

Expose pre-sized builders from Builders

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • High
    • Resolution: Done
    • None
    • 10.0.2
    • data-impl

    Description

      We have a few downstream users who are referencing ImmutableBuilders directly because that is the only way to access pre-sized constructors. These are ImmutableMapNodeBuilder, ImmutableUnkeyedListNodeBuilder and ImmutableUserMapNodeBuilder.

      Add static methods to Builders class to forward to these (and possibly others) in the form of:

          public static CollectionNodeBuilder<MapEntryNode, UserMapNode> orderedMapBuilderWithExpectedSize(final int size) {
              return ImmutableUserMapNodeBuilder.create(size);
          }
      

      Attachments

        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: