public enum IntStreamTestScenario extends Enum<IntStreamTestScenario> implements OpTestCase.BaseStreamTestScenario
Modifier and Type | Field and Description |
---|---|
static Set<IntStreamTestScenario> |
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 IntStreamTestScenario |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntStreamTestScenario[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntStreamTestScenario STREAM_FOR_EACH_WITH_CLOSE
public static final IntStreamTestScenario STREAM_TO_ARRAY
public static final IntStreamTestScenario STREAM_ITERATOR
public static final IntStreamTestScenario STREAM_SPLITERATOR
public static final IntStreamTestScenario STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT
public static final IntStreamTestScenario STREAM_SPLITERATOR_FOREACH
public static final IntStreamTestScenario PAR_STREAM_SEQUENTIAL_FOR_EACH
public static final IntStreamTestScenario PAR_STREAM_FOR_EACH_ORDERED
public static final IntStreamTestScenario PAR_STREAM_SPLITERATOR
public static final IntStreamTestScenario PAR_STREAM_SPLITERATOR_FOREACH
public static final IntStreamTestScenario PAR_STREAM_TO_ARRAY
public static final IntStreamTestScenario PAR_STREAM_SPLITERATOR_STREAM_TO_ARRAY
public static final IntStreamTestScenario PAR_STREAM_TO_ARRAY_CLEAR_SIZED
public static final IntStreamTestScenario PAR_STREAM_FOR_EACH
public static final IntStreamTestScenario PAR_STREAM_FOR_EACH_CLEAR_SIZED
public static final Set<IntStreamTestScenario> CLEAR_SIZED_SCENARIOS
public static IntStreamTestScenario[] values()
for (IntStreamTestScenario c : IntStreamTestScenario.values()) System.out.println(c);
public static IntStreamTestScenario 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