Package org.reactfx.util
Class ListHelper<T>
- java.lang.Object
-
- org.reactfx.util.ListHelper<T>
-
- Direct Known Subclasses:
ListHelper.MultiElemHelper,ListHelper.SingleElemHelper
public abstract class ListHelper<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classListHelper.MultiElemHelper<T>private static classListHelper.SingleElemHelper<T>
-
Constructor Summary
Constructors Modifier Constructor Description privateListHelper()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <T> ListHelper<T>add(ListHelper<T> listHelper, T elem)(package private) abstract ListHelper<T>add(T elem)(package private) abstract voidforEach(java.util.function.Consumer<? super T> f)static <T> voidforEach(ListHelper<T> listHelper, java.util.function.Consumer<? super T> f)(package private) abstract voidforEachBetween(int from, int to, java.util.function.Consumer<? super T> f)static <T> voidforEachBetween(ListHelper<T> listHelper, int from, int to, java.util.function.Consumer<? super T> f)(package private) abstract Tget(int index)static <T> Tget(ListHelper<T> listHelper, int index)static <T> booleanisEmpty(ListHelper<T> listHelper)(package private) abstract java.util.Iterator<T>iterator()(package private) abstract java.util.Iterator<T>iterator(int from, int to)static <T> java.util.Iterator<T>iterator(ListHelper<T> listHelper)static <T> java.util.Iterator<T>iterator(ListHelper<T> listHelper, int from, int to)(package private) abstract java.util.Optional<T>reduce(java.util.function.BinaryOperator<T> f)static <T> java.util.Optional<T>reduce(ListHelper<T> listHelper, java.util.function.BinaryOperator<T> f)static <T,U>
Ureduce(ListHelper<T> listHelper, U unit, java.util.function.BiFunction<U,T,U> f)(package private) abstract <U> Ureduce(U unit, java.util.function.BiFunction<U,T,U> f)static <T> ListHelper<T>remove(ListHelper<T> listHelper, T elem)(package private) abstract ListHelper<T>remove(T elem)(package private) abstract intsize()static <T> intsize(ListHelper<T> listHelper)(package private) abstract T[]toArray(java.util.function.IntFunction<T[]> allocator)static <T> T[]toArray(ListHelper<T> listHelper, java.util.function.IntFunction<T[]> allocator)
-
-
-
Method Detail
-
get
public static <T> T get(ListHelper<T> listHelper, int index)
-
add
public static <T> ListHelper<T> add(ListHelper<T> listHelper, T elem)
-
remove
public static <T> ListHelper<T> remove(ListHelper<T> listHelper, T elem)
-
forEach
public static <T> void forEach(ListHelper<T> listHelper, java.util.function.Consumer<? super T> f)
-
forEachBetween
public static <T> void forEachBetween(ListHelper<T> listHelper, int from, int to, java.util.function.Consumer<? super T> f)
-
iterator
public static <T> java.util.Iterator<T> iterator(ListHelper<T> listHelper)
-
iterator
public static <T> java.util.Iterator<T> iterator(ListHelper<T> listHelper, int from, int to)
-
reduce
public static <T> java.util.Optional<T> reduce(ListHelper<T> listHelper, java.util.function.BinaryOperator<T> f)
-
reduce
public static <T,U> U reduce(ListHelper<T> listHelper, U unit, java.util.function.BiFunction<U,T,U> f)
-
toArray
public static <T> T[] toArray(ListHelper<T> listHelper, java.util.function.IntFunction<T[]> allocator)
-
isEmpty
public static <T> boolean isEmpty(ListHelper<T> listHelper)
-
size
public static <T> int size(ListHelper<T> listHelper)
-
get
abstract T get(int index)
-
add
abstract ListHelper<T> add(T elem)
-
remove
abstract ListHelper<T> remove(T elem)
-
forEach
abstract void forEach(java.util.function.Consumer<? super T> f)
-
forEachBetween
abstract void forEachBetween(int from, int to, java.util.function.Consumer<? super T> f)
-
iterator
abstract java.util.Iterator<T> iterator()
-
iterator
abstract java.util.Iterator<T> iterator(int from, int to)
-
reduce
abstract <U> U reduce(U unit, java.util.function.BiFunction<U,T,U> f)
-
size
abstract int size()
-
-