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.
you should definitely read this -
http://benjiweber.co.uk/blog/2014/11/02/builder-pattern-with-java-8-lambdas/