@GwtCompatible public interface TestSortedSetGenerator<E> extends TestSetGenerator<E>
Creates sorted sets, containing sample elements, to be tested.
| Modifier and Type | Method and Description |
|---|---|
E |
aboveSamplesGreater()
Returns an element greater than the
TestContainerGenerator.samples() and greater than aboveSamplesLesser(). |
E |
aboveSamplesLesser()
Returns an element greater than the
TestContainerGenerator.samples() but less than aboveSamplesGreater(). |
E |
belowSamplesGreater()
Returns an element less than the
TestContainerGenerator.samples() but greater than belowSamplesLesser(). |
E |
belowSamplesLesser()
Returns an element less than the
TestContainerGenerator.samples() and less than belowSamplesGreater(). |
SortedSet<E> |
create(Object... elements)
Creates a new container containing the given elements.
|
createArray, order, samplesSortedSet<E> create(Object... elements)
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.
create in interface TestContainerGenerator<Collection<E>,E>create in interface TestSetGenerator<E>E belowSamplesLesser()
Returns an element less than the TestContainerGenerator.samples() and less than belowSamplesGreater().
E belowSamplesGreater()
Returns an element less than the TestContainerGenerator.samples() but greater than belowSamplesLesser().
E aboveSamplesLesser()
Returns an element greater than the TestContainerGenerator.samples() but less than aboveSamplesGreater().
E aboveSamplesGreater()
Returns an element greater than the TestContainerGenerator.samples() and greater than aboveSamplesLesser().