The forEachEntry algorithm employs a batching fork and join approach which does not yet allow for specification of a Factory for the blocks or a Combiner for the results. This means that forEachKeyValue can only support pure forking or forking with a shared thread-safe data structure collecting results.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <K, V> void | forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure2)
A parallel form of forEachKeyValue. |
| public static <K, V> void | forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor)
A parallel form of forEachKeyValue. |
| public static <K, V> void | forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount)
A parallel form of forEachKeyValue. |
| public static <K, V> void | forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount, Executor executor)
A parallel form of forEachKeyValue. |
| ParallelMapIterate | back to summary |
|---|---|
| private ParallelMapIterate() | |
| forEachKeyValue | back to summary |
|---|---|
| public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure2) A parallel form of forEachKeyValue. | |
| forEachKeyValue | back to summary |
|---|---|
| public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, Executor executor) A parallel form of forEachKeyValue. | |
| forEachKeyValue | back to summary |
|---|---|
| public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount) A parallel form of forEachKeyValue. | |
| forEachKeyValue | back to summary |
|---|---|
| public static <K, V> void forEachKeyValue(Map<K, V> map, Procedure2<? super K, ? super V> procedure, int minForkSize, int taskCount, Executor executor) A parallel form of forEachKeyValue. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Procedure2 | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| procedure | back to summary |
|---|---|
| private final Procedure2<? super T1, ? super T2> procedure | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PairProcedure | back to summary |
|---|---|
| private PairProcedure(Procedure2<? super T1, ? super T2> procedure) | |
| value | back to summary |
|---|---|
| public void value(Pair<T1, T2> pair) Implements org.
| |