Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Foo {
- public static final WithFoo BUILDER = a -> b -> new Foo(a, b);
- public interface WithFoo {
- WithBar withFoo(String foo);
- }
- public interface WithBar {
- Foo withBar(String bar);
- }
- public final String foo;
- public final String bar;
- private Foo(String foo, String bar) {
- this.foo = foo;
- this.bar = bar;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement