@Test public void also_acceptsNull() { final AtomicReference<SimpleClass> fromAlso = new AtomicReference<>(); final AtomicBoolean alsoCalled = new AtomicBoolean(false); take((SimpleClass) null) .also((simpleObj) -> { alsoCalled.set(true); fromAlso.set(simpleObj); }); Assert.assertTrue(alsoCalled.get()); Assert.assertNull(fromAlso.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);  }