@Test public void _also_objectCanBeModified() { final String initialString = "init"; final String finalString = "final"; final SimpleClass given = new SimpleClass(); given.value = initialString; take(given) ._also((simpleObj) -> simpleObj.value = finalString); Assert.assertEquals(given.value, finalString); }
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);  }