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 this collector operates by strict mutation of its result container.
Indicates that the result container has no intrinsic order, such as a
|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 STRICTLY_MUTATIVE
public static Collector.Characteristics values()
for (Collector.Characteristics c : Collector.Characteristics.values()) System.out.println(c);
public static Collector.Characteristics valueOf(String name)
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, 2013, Oracle and/or its affiliates. All rights reserved.