Class TestStringSortedMapGenerator
- java.lang.Object
-
- com.google.common.collect.testing.TestStringMapGenerator
-
- com.google.common.collect.testing.TestStringSortedMapGenerator
-
- All Implemented Interfaces:
TestContainerGenerator<java.util.Map<java.lang.String,java.lang.String>,java.util.Map.Entry<java.lang.String,java.lang.String>>,TestMapGenerator<java.lang.String,java.lang.String>,TestSortedMapGenerator<java.lang.String,java.lang.String>
- Direct Known Subclasses:
SortedMapGenerators.ImmutableSortedMapCopyOfEntriesGenerator,SortedMapGenerators.ImmutableSortedMapGenerator
public abstract class TestStringSortedMapGenerator extends TestStringMapGenerator implements TestSortedMapGenerator<java.lang.String,java.lang.String>
Implementation helper forTestMapGeneratorfor use with sorted maps of strings.
-
-
Constructor Summary
Constructors Constructor Description TestStringSortedMapGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Map.Entry<java.lang.String,java.lang.String>aboveSamplesGreater()Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofTestSortedMapGenerator.aboveSamplesLesser().java.util.Map.Entry<java.lang.String,java.lang.String>aboveSamplesLesser()Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofTestSortedMapGenerator.aboveSamplesGreater().java.util.Map.Entry<java.lang.String,java.lang.String>belowSamplesGreater()Returns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofTestSortedMapGenerator.belowSamplesLesser().java.util.Map.Entry<java.lang.String,java.lang.String>belowSamplesLesser()Returns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofTestSortedMapGenerator.belowSamplesGreater().java.util.SortedMap<java.lang.String,java.lang.String>create(java.lang.Object... entries)Creates a new container containing the given elements.protected abstract java.util.SortedMap<java.lang.String,java.lang.String>create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>order(java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> insertionOrder)Returns the original element list, unchanged.-
Methods inherited from class com.google.common.collect.testing.TestStringMapGenerator
createArray, createKeyArray, createValueArray, samples
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, samples
-
Methods inherited from interface com.google.common.collect.testing.TestMapGenerator
createKeyArray, createValueArray
-
-
-
-
Method Detail
-
belowSamplesLesser
public java.util.Map.Entry<java.lang.String,java.lang.String> belowSamplesLesser()
Description copied from interface:TestSortedMapGeneratorReturns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofTestSortedMapGenerator.belowSamplesGreater().- Specified by:
belowSamplesLesserin interfaceTestSortedMapGenerator<java.lang.String,java.lang.String>
-
belowSamplesGreater
public java.util.Map.Entry<java.lang.String,java.lang.String> belowSamplesGreater()
Description copied from interface:TestSortedMapGeneratorReturns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofTestSortedMapGenerator.belowSamplesLesser().- Specified by:
belowSamplesGreaterin interfaceTestSortedMapGenerator<java.lang.String,java.lang.String>
-
aboveSamplesLesser
public java.util.Map.Entry<java.lang.String,java.lang.String> aboveSamplesLesser()
Description copied from interface:TestSortedMapGeneratorReturns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofTestSortedMapGenerator.aboveSamplesGreater().- Specified by:
aboveSamplesLesserin interfaceTestSortedMapGenerator<java.lang.String,java.lang.String>
-
aboveSamplesGreater
public java.util.Map.Entry<java.lang.String,java.lang.String> aboveSamplesGreater()
Description copied from interface:TestSortedMapGeneratorReturns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofTestSortedMapGenerator.aboveSamplesLesser().- Specified by:
aboveSamplesGreaterin interfaceTestSortedMapGenerator<java.lang.String,java.lang.String>
-
order
public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>> order(java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> insertionOrder)
Description copied from class:TestStringMapGeneratorReturns the original element list, unchanged.- Specified by:
orderin interfaceTestContainerGenerator<java.util.Map<java.lang.String,java.lang.String>,java.util.Map.Entry<java.lang.String,java.lang.String>>- Overrides:
orderin classTestStringMapGenerator
-
create
protected abstract java.util.SortedMap<java.lang.String,java.lang.String> create(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)
- Specified by:
createin classTestStringMapGenerator
-
create
public java.util.SortedMap<java.lang.String,java.lang.String> create(java.lang.Object... entries)
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<java.util.Map<java.lang.String,java.lang.String>,java.util.Map.Entry<java.lang.String,java.lang.String>>- Specified by:
createin interfaceTestSortedMapGenerator<java.lang.String,java.lang.String>- Overrides:
createin classTestStringMapGenerator
-
-