BaseStream
(e.g., REFERENCE corresponds to Stream, INT_VALUE
corresponds to IntStream). Each may also correspond to
specializations of value-handling abstractions such as Spliterator,
Consumer, etc.
API Note
This enum is used by implementations to determine compatibility between streams and operations (i.e., if the output shape of a stream is compatible with the input shape of the next operation).
Some APIs require you to specify both a generic type and a stream shape
for input or output elements, such as TerminalOp which has both
generic type parameters for its input types, and a getter for the
input shape. When representing primitive streams in this way, the
generic type parameter should correspond to the wrapper type for that
primitive type.
| Modifier and Type | Field and Description |
|---|---|
| public static final StreamShape | DOUBLE_VALUE
The shape specialization corresponding to |
| public static final StreamShape | INT_VALUE
The shape specialization corresponding to |
| public static final StreamShape | LONG_VALUE
The shape specialization corresponding to |
| public static final StreamShape | REFERENCE
The shape specialization corresponding to |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StreamShape | |
| public static StreamShape[] |
| DOUBLE_VALUE | back to summary |
|---|---|
| public static final StreamShape DOUBLE_VALUE The shape specialization corresponding to | |
| INT_VALUE | back to summary |
|---|---|
| public static final StreamShape INT_VALUE The shape specialization corresponding to | |
| LONG_VALUE | back to summary |
|---|---|
| public static final StreamShape LONG_VALUE The shape specialization corresponding to | |
| REFERENCE | back to summary |
|---|---|
| public static final StreamShape REFERENCE The shape specialization corresponding to | |
| StreamShape | back to summary |
|---|---|
| private StreamShape() | |
| valueOf | back to summary |
|---|---|
| public static StreamShape valueOf(String name) | |
| values | back to summary |
|---|---|
| public static StreamShape[] values() | |