Interface TestSortedSetGenerator<E>
-
- 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 public interface TestSortedSetGenerator<E> extends TestSetGenerator<E>
Creates sorted sets, containing sample elements, to be tested.- Author:
- Louis Wasserman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EaboveSamplesGreater()Returns an element greater than theTestContainerGenerator.samples()and greater thanaboveSamplesLesser().EaboveSamplesLesser()Returns an element greater than theTestContainerGenerator.samples()but less thanaboveSamplesGreater().EbelowSamplesGreater()Returns an element less than theTestContainerGenerator.samples()but greater thanbelowSamplesLesser().EbelowSamplesLesser()Returns an element less than theTestContainerGenerator.samples()and less thanbelowSamplesGreater().SortedSet<E>create(Object... elements)Creates a new container containing the given elements.-
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
-
-
-
-
Method Detail
-
create
SortedSet<E> create(Object... elements)
Description copied from interface:TestContainerGeneratorCreates 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:
createin interfaceTestContainerGenerator<Collection<E>,E>- Specified by:
createin interfaceTestSetGenerator<E>
-
belowSamplesLesser
E belowSamplesLesser()
Returns an element less than theTestContainerGenerator.samples()and less thanbelowSamplesGreater().
-
belowSamplesGreater
E belowSamplesGreater()
Returns an element less than theTestContainerGenerator.samples()but greater thanbelowSamplesLesser().
-
aboveSamplesLesser
E aboveSamplesLesser()
Returns an element greater than theTestContainerGenerator.samples()but less thanaboveSamplesGreater().
-
aboveSamplesGreater
E aboveSamplesGreater()
Returns an element greater than theTestContainerGenerator.samples()and greater thanaboveSamplesLesser().
-
-