public abstract class ListHelper<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> ListHelper<T> |
add(ListHelper<T> listHelper,
T elem) |
static <T> void |
forEach(ListHelper<T> listHelper,
java.util.function.Consumer<? super T> f) |
static <T> void |
forEachBetween(ListHelper<T> listHelper,
int from,
int to,
java.util.function.Consumer<? super T> f) |
static <T> T |
get(ListHelper<T> listHelper,
int index) |
static <T> boolean |
isEmpty(ListHelper<T> listHelper) |
static <T> java.util.Iterator<T> |
iterator(ListHelper<T> listHelper) |
static <T> java.util.Iterator<T> |
iterator(ListHelper<T> listHelper,
int from,
int to) |
static <T> java.util.Optional<T> |
reduce(ListHelper<T> listHelper,
java.util.function.BinaryOperator<T> f) |
static <T,U> U |
reduce(ListHelper<T> listHelper,
U unit,
java.util.function.BiFunction<U,T,U> f) |
static <T> ListHelper<T> |
remove(ListHelper<T> listHelper,
T elem) |
static <T> int |
size(ListHelper<T> listHelper) |
static <T> T[] |
toArray(ListHelper<T> listHelper,
java.util.function.IntFunction<T[]> allocator) |
public static <T> T get(ListHelper<T> listHelper, int index)
public static <T> ListHelper<T> add(ListHelper<T> listHelper, T elem)
public static <T> ListHelper<T> remove(ListHelper<T> listHelper, T elem)
public static <T> void forEach(ListHelper<T> listHelper, java.util.function.Consumer<? super T> f)
public static <T> void forEachBetween(ListHelper<T> listHelper, int from, int to, java.util.function.Consumer<? super T> f)
public static <T> java.util.Iterator<T> iterator(ListHelper<T> listHelper)
public static <T> java.util.Iterator<T> iterator(ListHelper<T> listHelper, int from, int to)
public static <T> java.util.Optional<T> reduce(ListHelper<T> listHelper, java.util.function.BinaryOperator<T> f)
public static <T,U> U reduce(ListHelper<T> listHelper, U unit, java.util.function.BiFunction<U,T,U> f)
public static <T> T[] toArray(ListHelper<T> listHelper, java.util.function.IntFunction<T[]> allocator)
public static <T> boolean isEmpty(ListHelper<T> listHelper)
public static <T> int size(ListHelper<T> listHelper)