Enum SpliteratorTester.SpliteratorDecompositionStrategy
- java.lang.Object
-
- java.lang.Enum<SpliteratorTester.SpliteratorDecompositionStrategy>
-
- com.google.common.collect.testing.SpliteratorTester.SpliteratorDecompositionStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SpliteratorTester.SpliteratorDecompositionStrategy>
- Enclosing class:
- SpliteratorTester<E>
static enum SpliteratorTester.SpliteratorDecompositionStrategy extends java.lang.Enum<SpliteratorTester.SpliteratorDecompositionStrategy>
Different ways of decomposing a Spliterator, all of which must produce the same elements (up to ordering, if Spliterator.ORDERED is not present).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALTERNATE_ADVANCE_AND_SPLIT
MAXIMUM_SPLIT
NO_SPLIT_FOR_EACH_REMAINING
NO_SPLIT_TRY_ADVANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
SpliteratorDecompositionStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract <E> void
forEach(SpliteratorTester.GeneralSpliterator<E> spliterator, java.util.function.Consumer<? super E> consumer)
static SpliteratorTester.SpliteratorDecompositionStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SpliteratorTester.SpliteratorDecompositionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_SPLIT_FOR_EACH_REMAINING
public static final SpliteratorTester.SpliteratorDecompositionStrategy NO_SPLIT_FOR_EACH_REMAINING
-
NO_SPLIT_TRY_ADVANCE
public static final SpliteratorTester.SpliteratorDecompositionStrategy NO_SPLIT_TRY_ADVANCE
-
MAXIMUM_SPLIT
public static final SpliteratorTester.SpliteratorDecompositionStrategy MAXIMUM_SPLIT
-
ALTERNATE_ADVANCE_AND_SPLIT
public static final SpliteratorTester.SpliteratorDecompositionStrategy ALTERNATE_ADVANCE_AND_SPLIT
-
-
Method Detail
-
values
public static SpliteratorTester.SpliteratorDecompositionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SpliteratorTester.SpliteratorDecompositionStrategy c : SpliteratorTester.SpliteratorDecompositionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SpliteratorTester.SpliteratorDecompositionStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
forEach
abstract <E> void forEach(SpliteratorTester.GeneralSpliterator<E> spliterator, java.util.function.Consumer<? super E> consumer)
-
-