Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Java Currying

arfbtwn May 22nd, 2020 1,229 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Foo {
  2.  
  3.     public static final WithFoo BUILDER = a -> b -> new Foo(a, b);
  4.  
  5.     public interface WithFoo {
  6.         WithBar withFoo(String foo);
  7.     }
  8.  
  9.     public interface WithBar {
  10.         Foo withBar(String bar);
  11.     }
  12.  
  13.     public final String foo;
  14.     public final String bar;
  15.  
  16.     private Foo(String foo, String bar) {
  17.         this.foo = foo;
  18.         this.bar = bar;
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top