static class NavigableMapTestSuiteBuilder.DescendingTestMapGenerator<K,V> extends DerivedCollectionGenerators.ForwardingTestMapGenerator<K,V> implements TestSortedMapGenerator<K,V>
delegate
Constructor and Description |
---|
DescendingTestMapGenerator(TestSortedMapGenerator<K,V> delegate) |
Modifier and Type | Method and Description |
---|---|
java.util.Map.Entry<K,V> |
aboveSamplesGreater()
Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples()
and greater than the key of TestSortedMapGenerator.aboveSamplesLesser() . |
java.util.Map.Entry<K,V> |
aboveSamplesLesser()
Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples()
but less than the key of TestSortedMapGenerator.aboveSamplesGreater() . |
java.util.Map.Entry<K,V> |
belowSamplesGreater()
Returns an entry with a key less than the keys of the
TestContainerGenerator.samples()
but greater than the key of TestSortedMapGenerator.belowSamplesLesser() . |
java.util.Map.Entry<K,V> |
belowSamplesLesser()
Returns an entry with a key less than the keys of the
TestContainerGenerator.samples()
and less than the key of TestSortedMapGenerator.belowSamplesGreater() . |
java.util.NavigableMap<K,V> |
create(java.lang.Object... entries)
Creates a new container containing the given elements.
|
(package private) TestSortedMapGenerator<K,V> |
delegate() |
java.lang.Iterable<java.util.Map.Entry<K,V>> |
order(java.util.List<java.util.Map.Entry<K,V>> insertionOrder)
Returns the iteration ordering of elements, given the order in
which they were added to the container.
|
createArray, createKeyArray, createValueArray, samples
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createKeyArray, createValueArray
createArray, samples
DescendingTestMapGenerator(TestSortedMapGenerator<K,V> delegate)
public java.util.NavigableMap<K,V> create(java.lang.Object... entries)
TestContainerGenerator
create
in interface TestContainerGenerator<java.util.Map<K,V>,java.util.Map.Entry<K,V>>
create
in interface TestSortedMapGenerator<K,V>
create
in class DerivedCollectionGenerators.ForwardingTestMapGenerator<K,V>
public java.lang.Iterable<java.util.Map.Entry<K,V>> order(java.util.List<java.util.Map.Entry<K,V>> insertionOrder)
TestContainerGenerator
If the order is non-deterministic, as with HashSet
,
this method can return its input unmodified. Provided that the test suite
is built without CollectionFeature.KNOWN_ORDER
,
the tests will look only at the returned contents without regard for order.
order
in interface TestContainerGenerator<java.util.Map<K,V>,java.util.Map.Entry<K,V>>
order
in class DerivedCollectionGenerators.ForwardingTestMapGenerator<K,V>
TestSortedMapGenerator<K,V> delegate()
public java.util.Map.Entry<K,V> belowSamplesLesser()
TestSortedMapGenerator
TestContainerGenerator.samples()
and less than the key of TestSortedMapGenerator.belowSamplesGreater()
.belowSamplesLesser
in interface TestSortedMapGenerator<K,V>
public java.util.Map.Entry<K,V> belowSamplesGreater()
TestSortedMapGenerator
TestContainerGenerator.samples()
but greater than the key of TestSortedMapGenerator.belowSamplesLesser()
.belowSamplesGreater
in interface TestSortedMapGenerator<K,V>
public java.util.Map.Entry<K,V> aboveSamplesLesser()
TestSortedMapGenerator
TestContainerGenerator.samples()
but less than the key of TestSortedMapGenerator.aboveSamplesGreater()
.aboveSamplesLesser
in interface TestSortedMapGenerator<K,V>
public java.util.Map.Entry<K,V> aboveSamplesGreater()
TestSortedMapGenerator
TestContainerGenerator.samples()
and greater than the key of TestSortedMapGenerator.aboveSamplesLesser()
.aboveSamplesGreater
in interface TestSortedMapGenerator<K,V>