@Test public void chain_mixed_3() { final Object returned = take("") .<String>let((__) -> null) ._takeUnless((in) -> { Assert.fail("Should not call _takeUnless"); return true; }) .takeUnless((in) -> { Assert.assertNull(in); return true; }) ._also((in) -> Assert.fail("this _also should not have been called")) .also(Assert::assertNull) ._let((in) -> { Assert.fail("this _let should not have been called"); return in; }) .unwrap(); Assert.assertNull(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);  }