public class OptionalArrayList<T> extends java.util.ArrayList<T> implements OptionalList<T>
| Constructor and Description |
|---|
OptionalArrayList() |
OptionalArrayList(java.util.Collection<T> collection) |
| Modifier and Type | Method and Description |
|---|---|
void |
ifAllPresent(int start,
java.util.function.Consumer<OptionalList<T>> consumer) |
void |
ifAllPresent(int start,
int end,
java.util.function.Consumer<OptionalList<T>> consumer) |
void |
ifAllPresentForEach(int start,
java.util.function.Consumer<T> consumer) |
void |
ifAllPresentForEach(int start,
int end,
java.util.function.Consumer<T> consumer) |
void |
ifEmpty(java.lang.Runnable runnable) |
void |
ifPresent(int i,
java.util.function.Consumer<T> consumer) |
void |
ifSingle(java.util.function.Consumer<T> consumer) |
void |
ifSizeSuperior(int size,
java.util.function.Consumer<OptionalList<T>> consumer) |
OptionalList<T> |
subList(int fromIndex,
int toIndex) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitpublic OptionalArrayList()
public OptionalArrayList(java.util.Collection<T> collection)
public void ifEmpty(java.lang.Runnable runnable)
ifEmpty in interface OptionalList<T>public void ifPresent(int i,
java.util.function.Consumer<T> consumer)
ifPresent in interface OptionalList<T>public void ifSingle(java.util.function.Consumer<T> consumer)
ifSingle in interface OptionalList<T>public void ifAllPresent(int start,
int end,
java.util.function.Consumer<OptionalList<T>> consumer)
ifAllPresent in interface OptionalList<T>public void ifAllPresent(int start,
java.util.function.Consumer<OptionalList<T>> consumer)
ifAllPresent in interface OptionalList<T>public void ifAllPresentForEach(int start,
int end,
java.util.function.Consumer<T> consumer)
ifAllPresentForEach in interface OptionalList<T>public void ifAllPresentForEach(int start,
java.util.function.Consumer<T> consumer)
ifAllPresentForEach in interface OptionalList<T>public void ifSizeSuperior(int size,
java.util.function.Consumer<OptionalList<T>> consumer)
ifSizeSuperior in interface OptionalList<T>public OptionalList<T> subList(int fromIndex, int toIndex)