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

Add DataObject.toBuilder() utility method

    XMLWordPrintable

Details

    • Improvement
    • Status: Confirmed
    • Low
    • Resolution: Unresolved
    • None
    • None
    • Binding codegen
    • None

    Description

      Since we have default methods available, we can make conversion of DataObject to a corresponding shallowly-copied builder a utility method, which will redirect to the appropriate Builder copy-constructor.

      For an interface Foo, add the following method:

      default @NonNull FooBuilder toBuilder() {
          return new FooBuilder(this);
      }
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated: