public enum StreamShape extends Enum<StreamShape>
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.| Enum Constant and Description |
|---|
DOUBLE_VALUE
The shape specialization corresponding to
DoubleStream and
elements that are double values. |
INT_VALUE
The shape specialization corresponding to
IntStream and elements
that are int values. |
LONG_VALUE
The shape specialization corresponding to
LongStream and elements
that are long values. |
REFERENCE
The shape specialization corresponding to
Stream and elements
that are object references. |
| Modifier and Type | Method and Description |
|---|---|
static StreamShape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamShape REFERENCE
Stream and elements
that are object references.public static final StreamShape INT_VALUE
IntStream and elements
that are int values.public static final StreamShape LONG_VALUE
LongStream and elements
that are long values.public static final StreamShape DOUBLE_VALUE
DoubleStream and
elements that are double values.public static StreamShape[] values()
for (StreamShape c : StreamShape.values()) System.out.println(c);
public static StreamShape valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null