Interface TestSortedSetGenerator<E extends @Nullable Object>
- All Superinterfaces:
TestCollectionGenerator<E>
,TestContainerGenerator<Collection<E>,
,E> TestSetGenerator<E>
- All Known Implementing Classes:
DerivedCollectionGenerators.MapSortedKeySetGenerator
,DerivedCollectionGenerators.SortedSetSubsetTestSetGenerator
,NavigableSetTestSuiteBuilder.NavigableSetSubsetTestSetGenerator
,SetGenerators.ImmutableSortedSetCopyOfGenerator
,SetGenerators.ImmutableSortedSetDescendingGenerator
,SetGenerators.ImmutableSortedSetHeadsetGenerator
,SetGenerators.ImmutableSortedSetSubsetGenerator
,SetGenerators.ImmutableSortedSetTailsetGenerator
,TestStringSortedSetGenerator
@GwtCompatible
@NullMarked
public interface TestSortedSetGenerator<E extends @Nullable Object>
extends TestSetGenerator<E>
Creates sorted sets, containing sample elements, to be tested.
- Author:
- Louis Wasserman
-
Method Summary
Modifier and TypeMethodDescriptionReturns an element greater than theTestContainerGenerator.samples()
and greater thanaboveSamplesLesser()
.Returns an element greater than theTestContainerGenerator.samples()
but less thanaboveSamplesGreater()
.Returns an element less than theTestContainerGenerator.samples()
but greater thanbelowSamplesLesser()
.Returns an element less than theTestContainerGenerator.samples()
and less thanbelowSamplesGreater()
.Creates a new container containing the given elements.Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
-
Method Details
-
create
Description copied from interface:TestContainerGenerator
Creates a new container containing the given elements. TODO: would be nice to figure out how to use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an array of the erased type.- Specified by:
create
in interfaceTestContainerGenerator<Collection<E extends @Nullable Object>,
E extends @Nullable Object> - Specified by:
create
in interfaceTestSetGenerator<E extends @Nullable Object>
-
belowSamplesLesser
Returns an element less than theTestContainerGenerator.samples()
and less thanbelowSamplesGreater()
. -
belowSamplesGreater
Returns an element less than theTestContainerGenerator.samples()
but greater thanbelowSamplesLesser()
. -
aboveSamplesLesser
Returns an element greater than theTestContainerGenerator.samples()
but less thanaboveSamplesGreater()
. -
aboveSamplesGreater
Returns an element greater than theTestContainerGenerator.samples()
and greater thanaboveSamplesLesser()
.
-