@Test public void chain_mixed_1() { final int input = 102; final SimpleClass simpleClass = new SimpleClass(); final SimpleClass returned = take(input) .let((in) -> in + 2) .also((in) -> Assert.assertEquals(104, in.intValue())) .let((__) -> simpleClass) ._also((in) -> Assert.assertSame(simpleClass, in)) .unwrap(); Assert.assertSame(simpleClass, returned); }
public static <T> K2JWrapper<T> take(T object) { return new K2JWrapper<>(object); }
K2JCompat { public static <T> K2JWrapper<T> take(T object) { return new K2JWrapper<>(object); } }
K2JCompat { public static <T> K2JWrapper<T> take(T object) { return new K2JWrapper<>(object); }  }
K2JCompat { public static <T> K2JWrapper<T> take(T object) { return new K2JWrapper<>(object); }  static K2JWrapper<T> take(T object); }
K2JCompat { public static <T> K2JWrapper<T> take(T object) { return new K2JWrapper<>(object); }  static K2JWrapper<T> take(T object);  }