T
- type being consumed by all consumerspublic class Consumers<T> extends ArrayList<Consumer<T>> implements Consumer<T>
A list of Consumer
instances, each triggered
sequentially when this one is.
Any null
consumers are simply ignored.
modCount
Constructor and Description |
---|
Consumers() |
Consumers(Collection<? extends Consumer<T>> consumers) |
Consumers(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
accept(T t) |
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
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, subList, toArray, toArray, trimToSize
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll
parallelStream, stream
public Consumers()
public Consumers(int initialCapacity)
public Consumers(Collection<? extends Consumer<T>> consumers)
Copyright © 2008–2023 Norconex Inc.. All rights reserved.