Package | Description |
---|---|
java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Method | Description |
---|---|---|
static Collector.Characteristics |
Collector.Characteristics.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Collector.Characteristics[] |
Collector.Characteristics.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
Set<Collector.Characteristics> |
Collector.characteristics() |
Returns a
Set of Collector.Characteristics indicating
the characteristics of this Collector. |
Modifier and Type | Method | Description |
---|---|---|
static <T,A,R> Collector<T,A,R> |
Collector.of(Supplier<A> supplier,
BiConsumer<A,T> accumulator,
BinaryOperator<A> combiner,
Function<A,R> finisher,
Collector.Characteristics... characteristics) |
Returns a new
Collector described by the given supplier ,
accumulator , combiner , and finisher functions. |
static <T,R> Collector<T,R,R> |
Collector.of(Supplier<R> supplier,
BiConsumer<R,T> accumulator,
BinaryOperator<R> combiner,
Collector.Characteristics... characteristics) |
Returns a new
Collector described by the given supplier ,
accumulator , and combiner functions. |
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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps