[With] updated documentation for Wither/With

This commit is contained in:
Reinier Zwitserloot committed 2019-08-27 00:15:47 +02:00
1 parent 461b5541da
commit da5d9a12e7
8 files changed
+90 -101

No files matched your search

@@ -0,0 +1,14 @@
import lombok.AccessLevel;
import lombok.NonNull;
import lombok.With;
public class WithExample {
@With private final int age;
@With(AccessLevel.PROTECTED) @NonNull private final String name;
public WithExample(String name, int age) {
if (name == null) throw new NullPointerException();
this.name = name;
this.age = age;
}
}