@Test public void _takeUnless_nullInput_doesNotGetCalledAndReturnsNull() { final AtomicBoolean takeUnlessCalled = new AtomicBoolean(false); final SimpleClass returned = take((SimpleClass) null) ._takeUnless((in) -> { takeUnlessCalled.set(true); return false; }) .unwrap(); Assert.assertFalse(takeUnlessCalled.get()); 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);  }