public static enum Collector.Characteristics extends Enum<Collector.Characteristics>
Collector
性能,可用于优化还原的实现。
Enum Constant and Description |
---|
CONCURRENT
表明该收集器是并发的,这意味着结果容器可以支持从多个线程同时调用的具有相同结果容器的累加功能。
|
IDENTITY_FINISH
表明机功能是身份的功能,可以省略。
|
UNORDERED
指示集合操作不致力于保存输入元素的相遇顺序。
|
Modifier and Type | Method and Description |
---|---|
static Collector.Characteristics |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Collector.Characteristics[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final Collector.Characteristics CONCURRENT
如果一个CONCURRENT
收藏家也不是UNORDERED
,然后才应该评估的同时如果应用到一个无序的数据源。
public static final Collector.Characteristics UNORDERED
Set
。)
public static final Collector.Characteristics IDENTITY_FINISH
public static Collector.Characteristics[] values()
对于(collector.characteristics C:收藏家的特点。values()) 系统,println(C);
public static Collector.Characteristics valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
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, 2014, Oracle and/or its affiliates. All rights reserved.