@Test public void also_chainWithNull() { final AtomicBoolean firstAlsoCalled = new AtomicBoolean(false); final AtomicBoolean secondAlsoCalled = new AtomicBoolean(false); take((String) null) .also((in) -> firstAlsoCalled.set(true)) .also((in) -> secondAlsoCalled.set(true)); Assert.assertTrue(firstAlsoCalled.get()); Assert.assertTrue(secondAlsoCalled.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);  }