Class DerivedCollectionGenerators.MapSortedKeySetGenerator<K extends @Nullable Object, V extends @Nullable Object>
java.lang.Object
com.google.common.collect.testing.DerivedCollectionGenerators.MapKeySetGenerator<K,V>
com.google.common.collect.testing.DerivedCollectionGenerators.MapSortedKeySetGenerator<K,V>
- All Implemented Interfaces:
DerivedGenerator, TestCollectionGenerator<K>, TestContainerGenerator<Collection<K>, K>, TestSetGenerator<K>, TestSortedSetGenerator<K>
- Enclosing class:
DerivedCollectionGenerators
public static class DerivedCollectionGenerators.MapSortedKeySetGenerator<K extends @Nullable Object, V extends @Nullable Object>
extends DerivedCollectionGenerators.MapKeySetGenerator<K,V>
implements TestSortedSetGenerator<K>
- Author:
- George van den Driessche
-
Constructor Summary
ConstructorsConstructorDescriptionMapSortedKeySetGenerator(OneSizeTestContainerGenerator<Map<K, V>, Map.Entry<K, V>> mapGenerator) -
Method Summary
Modifier and TypeMethodDescriptionReturns an element greater than theTestContainerGenerator.samples()and greater thanTestSortedSetGenerator.aboveSamplesLesser().Returns an element greater than theTestContainerGenerator.samples()but less thanTestSortedSetGenerator.aboveSamplesGreater().Returns an element less than theTestContainerGenerator.samples()but greater thanTestSortedSetGenerator.belowSamplesLesser().Returns an element less than theTestContainerGenerator.samples()and less thanTestSortedSetGenerator.belowSamplesGreater().Creates a new container containing the given elements.Methods inherited from class DerivedCollectionGenerators.MapKeySetGenerator
createArray, getInnerGenerator, order, samplesModifier and TypeMethodDescriptionK[]createArray(int length) Helper method to create an array of the appropriate type used by this generator.Returns the iteration ordering of elements, given the order in which they were added to the container.samples()Returns the sample elements that this generate populates its container with.
-
Constructor Details
-
MapSortedKeySetGenerator
-
-
Method Details
-
create
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 extends @Nullable Object, V extends @Nullable Object>- Specified by:
createin interfaceTestSetGenerator<K extends @Nullable Object>- Specified by:
createin interfaceTestSortedSetGenerator<K extends @Nullable Object>- Overrides:
createin classDerivedCollectionGenerators.MapKeySetGenerator<K extends @Nullable Object, V extends @Nullable Object>
-
belowSamplesLesser
Description copied from interface:TestSortedSetGeneratorReturns an element less than theTestContainerGenerator.samples()and less thanTestSortedSetGenerator.belowSamplesGreater().- Specified by:
belowSamplesLesserin interfaceTestSortedSetGenerator<K extends @Nullable Object>
-
belowSamplesGreater
Description copied from interface:TestSortedSetGeneratorReturns an element less than theTestContainerGenerator.samples()but greater thanTestSortedSetGenerator.belowSamplesLesser().- Specified by:
belowSamplesGreaterin interfaceTestSortedSetGenerator<K extends @Nullable Object>
-
aboveSamplesLesser
Description copied from interface:TestSortedSetGeneratorReturns an element greater than theTestContainerGenerator.samples()but less thanTestSortedSetGenerator.aboveSamplesGreater().- Specified by:
aboveSamplesLesserin interfaceTestSortedSetGenerator<K extends @Nullable Object>
-
aboveSamplesGreater
Description copied from interface:TestSortedSetGeneratorReturns an element greater than theTestContainerGenerator.samples()and greater thanTestSortedSetGenerator.aboveSamplesLesser().- Specified by:
aboveSamplesGreaterin interfaceTestSortedSetGenerator<K extends @Nullable Object>
-