public static enum Collector.Characteristics extends Enum<Collector.Characteristics>
Collector, which can be used to optimize reduction implementations.
|Enum Constant and Description|
Indicates that this collector is concurrent, meaning that the result container can support the accumulator function being called concurrently with the same result container from multiple threads.
Indicates that the finisher function is the identity function and can be elided.
Indicates that the collection operation does not commit to preserving the encounter order of input elements.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final Collector.Characteristics CONCURRENT
CONCURRENT collector is not also
then it should only be evaluated concurrently if applied to an
unordered data source.
public static final Collector.Characteristics UNORDERED
public static final Collector.Characteristics IDENTITY_FINISH
public static Collector.Characteristics values()
for (Collector.Characteristics c : Collector.Characteristics.values()) System.out.println(c);
public static Collector.Characteristics valueOf(String name)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2018, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.