[Feature] staticConstructor should use already defined private constructor if available

This commit is contained in:
daliclass authored and Roel Spilker committed 2019-05-07 15:18:01 +02:00
1 parent 3496a3e963
commit d3ae4d9948
6 files changed
+135 -12

No files matched your search

@@ -0,0 +1,12 @@
import lombok.Value;
@Value(staticConstructor = "of")
public class ValueStaticConstructorOf {
String name;
Double price;
private ValueStaticConstructorOf(String name, Double price) {
this.name = name;
this.price = price;
}
}