public class MoreCollections extends Object
| Constructor and Description |
|---|
MoreCollections() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
forEachSlowlyOverDuration(Collection<T> elements,
long duration,
TimeUnit unit,
Consumer<T> fn)
Like forEach, but visits each element slowly over the given duration.
|
public static <T> void forEachSlowlyOverDuration(Collection<T> elements, long duration, TimeUnit unit, Consumer<T> fn) throws InterruptedException
T - elements - duration - unit - fn - InterruptedExceptionCopyright © 2020. All rights reserved.