@GwtCompatible public interface TestSortedMapGenerator<K,V> extends TestMapGenerator<K,V>
Creates sorted maps, containing sample elements, to be tested.
| Modifier and Type | Method and Description |
|---|---|
Map.Entry<K,V> |
aboveSamplesGreater()
Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples() and greater than the key of aboveSamplesLesser(). |
Map.Entry<K,V> |
aboveSamplesLesser()
Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples() but less than the key of aboveSamplesGreater(). |
Map.Entry<K,V> |
belowSamplesGreater()
Returns an entry with a key less than the keys of the
TestContainerGenerator.samples() but greater than the key of belowSamplesLesser(). |
Map.Entry<K,V> |
belowSamplesLesser()
Returns an entry with a key less than the keys of the
TestContainerGenerator.samples() and less than the key of belowSamplesGreater(). |
SortedMap<K,V> |
create(Object... elements)
Creates a new container containing the given elements.
|
createKeyArray, createValueArraycreateArray, order, samplesSortedMap<K,V> 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.
Map.Entry<K,V> belowSamplesLesser()
Returns an entry with a key less than the keys of the TestContainerGenerator.samples() and less than the key of belowSamplesGreater().
Map.Entry<K,V> belowSamplesGreater()
Returns an entry with a key less than the keys of the TestContainerGenerator.samples() but greater than the key of belowSamplesLesser().
Map.Entry<K,V> aboveSamplesLesser()
Returns an entry with a key greater than the keys of the TestContainerGenerator.samples() but less than the key of aboveSamplesGreater().
Map.Entry<K,V> aboveSamplesGreater()
Returns an entry with a key greater than the keys of the TestContainerGenerator.samples() and greater than the key of aboveSamplesLesser().