@GwtCompatible public abstract class TestStringSortedMapGenerator extends TestStringMapGenerator implements TestSortedMapGenerator<String,String>
Implementation helper for TestMapGenerator for use with sorted maps of strings.
| Constructor and Description |
|---|
TestStringSortedMapGenerator() |
createArray, createKeyArray, createValueArray, samplesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateKeyArray, createValueArraycreateArray, samplespublic Map.Entry<String,String> belowSamplesLesser()
TestSortedMapGeneratorReturns an entry with a key less than the keys of the TestContainerGenerator.samples() and less than the key of TestSortedMapGenerator.belowSamplesGreater().
belowSamplesLesser in interface TestSortedMapGenerator<String,String>public Map.Entry<String,String> belowSamplesGreater()
TestSortedMapGeneratorReturns an entry with a key less than the keys of the TestContainerGenerator.samples() but greater than the key of TestSortedMapGenerator.belowSamplesLesser().
belowSamplesGreater in interface TestSortedMapGenerator<String,String>public Map.Entry<String,String> aboveSamplesLesser()
TestSortedMapGeneratorReturns an entry with a key greater than the keys of the TestContainerGenerator.samples() but less than the key of TestSortedMapGenerator.aboveSamplesGreater().
aboveSamplesLesser in interface TestSortedMapGenerator<String,String>public Map.Entry<String,String> aboveSamplesGreater()
TestSortedMapGeneratorReturns an entry with a key greater than the keys of the TestContainerGenerator.samples() and greater than the key of TestSortedMapGenerator.aboveSamplesLesser().
aboveSamplesGreater in interface TestSortedMapGenerator<String,String>public Iterable<Map.Entry<String,String>> order(List<Map.Entry<String,String>> insertionOrder)
TestStringMapGeneratorReturns the original element list, unchanged.
order in interface TestContainerGenerator<Map<String,String>,Map.Entry<String,String>>order in class TestStringMapGeneratorprotected abstract SortedMap<String,String> create(Map.Entry<String,String>[] entries)
create in class TestStringMapGeneratorpublic SortedMap<String,String> create(Object... entries)
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<Map<String,String>,Map.Entry<String,String>>create in interface TestSortedMapGenerator<String,String>create in class TestStringMapGenerator