Class SpliteratorTester<E extends @Nullable Object>
- java.lang.Object
-
- com.google.common.collect.testing.SpliteratorTester<E>
-
@GwtCompatible @NullMarked public final class SpliteratorTester<E extends @Nullable Object> extends Object
Tester forSpliterator
implementations.- Since:
- 33.4.0 (but since 21.0 in the JRE flavor)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SpliteratorTester.Ordered
Return type from "contains the following elements" assertions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpliteratorTester.Ordered
expect(Iterable<?> elements)
SpliteratorTester.Ordered
expect(Object... elements)
static <E extends @Nullable Object>
SpliteratorTester<E>of(Supplier<Spliterator<E>> spliteratorSupplier)
static SpliteratorTester<Double>
ofDouble(Supplier<Spliterator.OfDouble> spliteratorSupplier)
static SpliteratorTester<Integer>
ofInt(Supplier<Spliterator.OfInt> spliteratorSupplier)
static SpliteratorTester<Long>
ofLong(Supplier<Spliterator.OfLong> spliteratorSupplier)
-
-
-
Method Detail
-
of
public static <E extends @Nullable Object> SpliteratorTester<E> of(Supplier<Spliterator<E>> spliteratorSupplier)
-
ofInt
public static SpliteratorTester<Integer> ofInt(Supplier<Spliterator.OfInt> spliteratorSupplier)
- Since:
- 33.4.0 (but since 28.1 in the JRE flavor)
-
ofLong
public static SpliteratorTester<Long> ofLong(Supplier<Spliterator.OfLong> spliteratorSupplier)
- Since:
- 33.4.0 (but since 28.1 in the JRE flavor)
-
ofDouble
public static SpliteratorTester<Double> ofDouble(Supplier<Spliterator.OfDouble> spliteratorSupplier)
- Since:
- 33.4.0 (but since 28.1 in the JRE flavor)
-
expect
@SafeVarargs @CanIgnoreReturnValue public final SpliteratorTester.Ordered expect(Object... elements)
-
expect
@CanIgnoreReturnValue public final SpliteratorTester.Ordered expect(Iterable<?> elements)
-
-