@Test public void let_acceptsNull() { final AtomicReference<SimpleClass> fromLet = new AtomicReference<>(); final AtomicBoolean letCalled = new AtomicBoolean(false); take((SimpleClass) null) .let((simpleObj) -> { letCalled.set(true); fromLet.set(simpleObj); return this; }); Assert.assertTrue(letCalled.get()); Assert.assertNull(fromLet.get()); }
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);  }