@Test public void _also_chain() { final String hello = "Hello "; final String world = "World"; final String exclamation = "!"; final StringBuilder input = new StringBuilder(); final String expected = hello + world + exclamation; final StringBuilder returned = take(input) ._also((in) -> in.append(hello)) ._also((in) -> in.append(world)) ._also((in) -> in.append(exclamation)) .unwrap(); Assert.assertEquals(expected, returned.toString()); }
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);  }