Add DataObject.toBuilder() utility method

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); }

Activity

Show:

Details

Assignee

Reporter

Components

Priority

Created September 3, 2019 at 8:09 PM
Updated July 5, 2024 at 2:45 PM