I have pojo classes as shown below.
public class Car {
private Engine engine;
private List<Wheel> wheelList;
}
I am using Below pojo classes as parameters in "Car" pojo class.
public class Engine {
private int power;
private int type;
}
public class Wheel {
private int size;
private int type;
private int colour;
}
Can you please help how to write builder pattern using java 8 lambda or lombok.