public static class DerivedCollectionGenerators.SortedMapSubmapTestMapGenerator<K,V> extends DerivedCollectionGenerators.ForwardingTestMapGenerator<K,V> implements TestSortedMapGenerator<K,V>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Comparator<java.util.Map.Entry<K,V>> |
entryComparator |
(package private) K |
firstInclusive |
(package private) DerivedCollectionGenerators.Bound |
from |
(package private) K |
lastInclusive |
(package private) DerivedCollectionGenerators.Bound |
to |
delegate| Constructor and Description |
|---|
SortedMapSubmapTestMapGenerator(TestSortedMapGenerator<K,V> delegate,
DerivedCollectionGenerators.Bound to,
DerivedCollectionGenerators.Bound from) |
| 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.SortedMap<K,V> |
create(java.lang.Object... entries)
Creates a new container containing the given elements.
|
(package private) java.util.SortedMap<K,V> |
createSubMap(java.util.SortedMap<K,V> map,
K firstExclusive,
K lastExclusive)
Calls the smallest subMap overload that filters out the extreme values.
|
DerivedCollectionGenerators.Bound |
getFrom() |
TestSortedMapGenerator<K,V> |
getInnerGenerator() |
DerivedCollectionGenerators.Bound |
getTo() |
createArray, createKeyArray, createValueArray, order, samplesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateKeyArray, createValueArraycreateArray, order, samplesfinal DerivedCollectionGenerators.Bound to
final DerivedCollectionGenerators.Bound from
final K firstInclusive
final K lastInclusive
public SortedMapSubmapTestMapGenerator(TestSortedMapGenerator<K,V> delegate, DerivedCollectionGenerators.Bound to, DerivedCollectionGenerators.Bound from)
public java.util.SortedMap<K,V> create(java.lang.Object... entries)
TestContainerGeneratorcreate 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>java.util.SortedMap<K,V> createSubMap(java.util.SortedMap<K,V> map, K firstExclusive, K lastExclusive)
public final DerivedCollectionGenerators.Bound getTo()
public final DerivedCollectionGenerators.Bound getFrom()
public final TestSortedMapGenerator<K,V> getInnerGenerator()
public java.util.Map.Entry<K,V> belowSamplesLesser()
TestSortedMapGeneratorTestContainerGenerator.samples() and less than the key
of TestSortedMapGenerator.belowSamplesGreater().belowSamplesLesser in interface TestSortedMapGenerator<K,V>public java.util.Map.Entry<K,V> belowSamplesGreater()
TestSortedMapGeneratorTestContainerGenerator.samples() but greater than the
key of TestSortedMapGenerator.belowSamplesLesser().belowSamplesGreater in interface TestSortedMapGenerator<K,V>public java.util.Map.Entry<K,V> aboveSamplesLesser()
TestSortedMapGeneratorTestContainerGenerator.samples() but less than the
key of TestSortedMapGenerator.aboveSamplesGreater().aboveSamplesLesser in interface TestSortedMapGenerator<K,V>public java.util.Map.Entry<K,V> aboveSamplesGreater()
TestSortedMapGeneratorTestContainerGenerator.samples() and greater than
the key of TestSortedMapGenerator.aboveSamplesLesser().aboveSamplesGreater in interface TestSortedMapGenerator<K,V>