Enum Class SpliteratorTester.SpliteratorDecompositionStrategy
java.lang.Object
java.lang.Enum<SpliteratorTester.SpliteratorDecompositionStrategy>
com.google.common.collect.testing.SpliteratorTester.SpliteratorDecompositionStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SpliteratorTester.SpliteratorDecompositionStrategy>
,Constable
- Enclosing class:
SpliteratorTester<E>
static enum SpliteratorTester.SpliteratorDecompositionStrategy
extends 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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Set
<SpliteratorTester.SpliteratorDecompositionStrategy> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract <E> void
forEach
(SpliteratorTester.GeneralSpliterator<E> spliterator, Consumer<? super E> consumer) Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_SPLIT_FOR_EACH_REMAINING
-
NO_SPLIT_TRY_ADVANCE
-
MAXIMUM_SPLIT
-
ALTERNATE_ADVANCE_AND_SPLIT
-
-
Field Details
-
ALL_STRATEGIES
-
-
Constructor Details
-
SpliteratorDecompositionStrategy
private SpliteratorDecompositionStrategy()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forEach
abstract <E> void forEach(SpliteratorTester.GeneralSpliterator<E> spliterator, Consumer<? super E> consumer)
-