Lets say I have a Lombok annotated class like
@Builder
class Band {
String name;
String type;
}
I know I can do:
Band rollingStones = Band.builder()
.name("Rolling Stones")
.type("Rock Band")
.build();
Is there an easy way to create an object of Band
using the existing object as a template and changing one of its properties?
Something like:
Band nirvana = Band.builder(rollingStones)
.name("Nirvana");
I can't find this in the Lombok documentation.