- 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
@NullMarked
public interface TestSortedMapGenerator<K extends @Nullable Object, V extends @Nullable Object>
extends TestMapGenerator<K,V>
Creates sorted maps, containing sample elements, to be tested.
- Author:
- Louis Wasserman
-
Method Summary
Modifier and TypeMethodDescriptionReturns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofaboveSamplesLesser().Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofaboveSamplesGreater().Returns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofbelowSamplesLesser().Returns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofbelowSamplesGreater().Creates a new container containing the given elements.Methods inherited from interface TestContainerGenerator
createArray, order, samplesModifier and TypeMethodDescriptioncreateArray(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.Methods inherited from interface TestMapGenerator
createKeyArray, createValueArrayModifier and TypeMethodDescriptionK[]createKeyArray(int length) V[]createValueArray(int length)
-
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. -
belowSamplesLesser
Returns an entry with a key less than the keys of theTestContainerGenerator.samples()and less than the key ofbelowSamplesGreater(). -
belowSamplesGreater
Returns an entry with a key less than the keys of theTestContainerGenerator.samples()but greater than the key ofbelowSamplesLesser(). -
aboveSamplesLesser
Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()but less than the key ofaboveSamplesGreater(). -
aboveSamplesGreater
Returns an entry with a key greater than the keys of theTestContainerGenerator.samples()and greater than the key ofaboveSamplesLesser().
-