Interface TestSortedMapGenerator<K,V>
-
- All Superinterfaces:
TestContainerGenerator<Map<K,V>,Map.Entry<K,V>>,TestMapGenerator<K,V>
- All Known Implementing Classes:
DerivedCollectionGenerators.SortedMapSubmapTestMapGenerator,NavigableMapTestSuiteBuilder.NavigableMapSubmapTestMapGenerator,SortedMapGenerators.ImmutableSortedMapCopyOfEntriesGenerator,SortedMapGenerators.ImmutableSortedMapGenerator,TestStringSortedMapGenerator
@GwtCompatible public interface TestSortedMapGenerator<K,V> extends TestMapGenerator<K,V>
Creates sorted maps, containing sample elements, to be tested.- Author:
- Louis Wasserman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map.Entry<K,V>aboveSamplesGreater()Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofaboveSamplesLesser().Map.Entry<K,V>aboveSamplesLesser()Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofaboveSamplesGreater().Map.Entry<K,V>belowSamplesGreater()Returns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofbelowSamplesLesser().Map.Entry<K,V>belowSamplesLesser()Returns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofbelowSamplesGreater().SortedMap<K,V>create(Object... elements)Creates a new container containing the given elements.-
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
-
Methods inherited from interface com.google.common.collect.testing.TestMapGenerator
createKeyArray, createValueArray
-
-
-
-
Method Detail
-
create
SortedMap<K,V> 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<K,V>
-
belowSamplesLesser
Map.Entry<K,V> belowSamplesLesser()
Returns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofbelowSamplesGreater().
-
belowSamplesGreater
Map.Entry<K,V> belowSamplesGreater()
Returns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofbelowSamplesLesser().
-
aboveSamplesLesser
Map.Entry<K,V> aboveSamplesLesser()
Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofaboveSamplesGreater().
-
aboveSamplesGreater
Map.Entry<K,V> aboveSamplesGreater()
Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofaboveSamplesLesser().
-
-