public enum StreamTestScenario extends Enum<StreamTestScenario> implements OpTestCase.BaseStreamTestScenario
Modifier and Type | Field and Description |
---|---|
static Set<StreamTestScenario> |
CLEAR_SIZED_SCENARIOS |
Modifier and Type | Method and Description |
---|---|
StreamShape |
getShape() |
boolean |
isOrdered() |
boolean |
isParallel() |
<T,U,S_IN extends BaseStream<T,S_IN>,S_OUT extends BaseStream<U,S_OUT>> |
run(TestData<T,S_IN> data,
Consumer<U> b,
Function<S_IN,S_OUT> m) |
static StreamTestScenario |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamTestScenario[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamTestScenario STREAM_FOR_EACH_WITH_CLOSE
public static final StreamTestScenario STREAM_COLLECT
public static final StreamTestScenario STREAM_TO_ARRAY
public static final StreamTestScenario STREAM_ITERATOR
public static final StreamTestScenario STREAM_SPLITERATOR
public static final StreamTestScenario STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT
public static final StreamTestScenario STREAM_SPLITERATOR_FOREACH
public static final StreamTestScenario PAR_STREAM_SEQUENTIAL_FOR_EACH
public static final StreamTestScenario PAR_STREAM_FOR_EACH_ORDERED
public static final StreamTestScenario PAR_STREAM_SPLITERATOR
public static final StreamTestScenario PAR_STREAM_SPLITERATOR_FOREACH
public static final StreamTestScenario PAR_STREAM_TO_ARRAY
public static final StreamTestScenario PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY
public static final StreamTestScenario PAR_STREAM_TO_ARRAY_CLEAR_SIZED
public static final StreamTestScenario PAR_STREAM_COLLECT_TO_LIST
public static final StreamTestScenario STREAM_TO_PAR_STREAM_COLLECT_TO_LIST
public static final StreamTestScenario PAR_STREAM_TO_STREAM_COLLECT_TO_LIST
public static final StreamTestScenario PAR_STREAM_FOR_EACH
public static final StreamTestScenario PAR_STREAM_FOR_EACH_CLEAR_SIZED
public static final Set<StreamTestScenario> CLEAR_SIZED_SCENARIOS
public static StreamTestScenario[] values()
for (StreamTestScenario c : StreamTestScenario.values()) System.out.println(c);
public static StreamTestScenario 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 nullpublic StreamShape getShape()
getShape
in interface OpTestCase.BaseStreamTestScenario
public boolean isParallel()
isParallel
in interface OpTestCase.BaseStreamTestScenario
public boolean isOrdered()
isOrdered
in interface OpTestCase.BaseStreamTestScenario
public <T,U,S_IN extends BaseStream<T,S_IN>,S_OUT extends BaseStream<U,S_OUT>> void run(TestData<T,S_IN> data, Consumer<U> b, Function<S_IN,S_OUT> m)
run
in interface OpTestCase.BaseStreamTestScenario