Package org.reactfx.util
Class ListHelper.SingleElemHelper<T>
- java.lang.Object
-
- org.reactfx.util.ListHelper<T>
-
- org.reactfx.util.ListHelper.SingleElemHelper<T>
-
- Enclosing class:
- ListHelper<T>
private static class ListHelper.SingleElemHelper<T> extends ListHelper<T>
-
-
Constructor Summary
Constructors Constructor Description SingleElemHelper(T elem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ListHelper<T>
add(T elem)
(package private) void
forEach(java.util.function.Consumer<? super T> f)
(package private) void
forEachBetween(int from, int to, java.util.function.Consumer<? super T> f)
(package private) T
get(int index)
(package private) java.util.Iterator<T>
iterator()
(package private) java.util.Iterator<T>
iterator(int from, int to)
(package private) java.util.Optional<T>
reduce(java.util.function.BinaryOperator<T> f)
(package private) <U> U
reduce(U unit, java.util.function.BiFunction<U,T,U> f)
(package private) ListHelper<T>
remove(T elem)
(package private) int
size()
(package private) T[]
toArray(java.util.function.IntFunction<T[]> allocator)
-
-
-
Field Detail
-
elem
private final T elem
-
-
Constructor Detail
-
SingleElemHelper
SingleElemHelper(T elem)
-
-
Method Detail
-
get
T get(int index)
- Specified by:
get
in classListHelper<T>
-
add
ListHelper<T> add(T elem)
- Specified by:
add
in classListHelper<T>
-
remove
ListHelper<T> remove(T elem)
- Specified by:
remove
in classListHelper<T>
-
forEach
void forEach(java.util.function.Consumer<? super T> f)
- Specified by:
forEach
in classListHelper<T>
-
forEachBetween
void forEachBetween(int from, int to, java.util.function.Consumer<? super T> f)
- Specified by:
forEachBetween
in classListHelper<T>
-
iterator
java.util.Iterator<T> iterator()
- Specified by:
iterator
in classListHelper<T>
-
iterator
java.util.Iterator<T> iterator(int from, int to)
- Specified by:
iterator
in classListHelper<T>
-
reduce
java.util.Optional<T> reduce(java.util.function.BinaryOperator<T> f)
- Specified by:
reduce
in classListHelper<T>
-
reduce
<U> U reduce(U unit, java.util.function.BiFunction<U,T,U> f)
- Specified by:
reduce
in classListHelper<T>
-
toArray
T[] toArray(java.util.function.IntFunction<T[]> allocator)
- Specified by:
toArray
in classListHelper<T>
-
size
int size()
- Specified by:
size
in classListHelper<T>
-
-