static enum CollectorTester.CollectStrategy extends java.lang.Enum<CollectorTester.CollectStrategy>
Enum Constant and Description |
---|
MERGE_LEFT_ASSOCIATIVE
Get one accumulator for each element and merge the accumulators left-to-right.
|
MERGE_RIGHT_ASSOCIATIVE
Get one accumulator for each element and merge the accumulators right-to-left.
|
SEQUENTIAL
Get one accumulator and accumulate the elements into it sequentially.
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract <T,A,R> A |
result(java.util.stream.Collector<T,A,R> collector,
java.lang.Iterable<T> inputs) |
static CollectorTester.CollectStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollectorTester.CollectStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CollectorTester.CollectStrategy SEQUENTIAL
public static final CollectorTester.CollectStrategy MERGE_LEFT_ASSOCIATIVE
public static final CollectorTester.CollectStrategy MERGE_RIGHT_ASSOCIATIVE
public static CollectorTester.CollectStrategy[] values()
for (CollectorTester.CollectStrategy c : CollectorTester.CollectStrategy.values()) System.out.println(c);
public static CollectorTester.CollectStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract <T,A,R> A result(java.util.stream.Collector<T,A,R> collector, java.lang.Iterable<T> inputs)