Class DerivedCollectionGenerators.MapSortedKeySetGenerator<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.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<java.util.Collection<K>,K>
,TestSetGenerator<K>
,TestSortedSetGenerator<K>
- Enclosing class:
- DerivedCollectionGenerators
public static class DerivedCollectionGenerators.MapSortedKeySetGenerator<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object> extends DerivedCollectionGenerators.MapKeySetGenerator<K,V> implements TestSortedSetGenerator<K>, DerivedGenerator
-
-
Constructor Summary
Constructors Constructor Description MapSortedKeySetGenerator(OneSizeTestContainerGenerator<java.util.Map<K,V>,java.util.Map.Entry<K,V>> mapGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K
aboveSamplesGreater()
Returns an element greater than theTestContainerGenerator.samples()
and greater thanTestSortedSetGenerator.aboveSamplesLesser()
.K
aboveSamplesLesser()
Returns an element greater than theTestContainerGenerator.samples()
but less thanTestSortedSetGenerator.aboveSamplesGreater()
.K
belowSamplesGreater()
Returns an element less than theTestContainerGenerator.samples()
but greater thanTestSortedSetGenerator.belowSamplesLesser()
.K
belowSamplesLesser()
Returns an element less than theTestContainerGenerator.samples()
and less thanTestSortedSetGenerator.belowSamplesGreater()
.java.util.SortedSet<K>
create(java.lang.Object... elements)
Creates a new container containing the given elements.-
Methods inherited from class com.google.common.collect.testing.DerivedCollectionGenerators.MapKeySetGenerator
createArray, getInnerGenerator, order, 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.DerivedGenerator
getInnerGenerator
-
Methods inherited from interface com.google.common.collect.testing.TestContainerGenerator
createArray, order, samples
-
-
-
-
Constructor Detail
-
MapSortedKeySetGenerator
public MapSortedKeySetGenerator(OneSizeTestContainerGenerator<java.util.Map<K,V>,java.util.Map.Entry<K,V>> mapGenerator)
-
-
Method Detail
-
create
public java.util.SortedSet<K> create(java.lang.Object... elements)
Description copied from interface:TestContainerGenerator
Creates 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:
create
in interfaceTestContainerGenerator<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
- Specified by:
create
in interfaceTestSetGenerator<K extends @Nullable java.lang.Object>
- Specified by:
create
in interfaceTestSortedSetGenerator<K extends @Nullable java.lang.Object>
- Overrides:
create
in classDerivedCollectionGenerators.MapKeySetGenerator<K extends @Nullable java.lang.Object,V extends @Nullable java.lang.Object>
-
belowSamplesLesser
public K belowSamplesLesser()
Description copied from interface:TestSortedSetGenerator
Returns an element less than theTestContainerGenerator.samples()
and less thanTestSortedSetGenerator.belowSamplesGreater()
.- Specified by:
belowSamplesLesser
in interfaceTestSortedSetGenerator<K extends @Nullable java.lang.Object>
-
belowSamplesGreater
public K belowSamplesGreater()
Description copied from interface:TestSortedSetGenerator
Returns an element less than theTestContainerGenerator.samples()
but greater thanTestSortedSetGenerator.belowSamplesLesser()
.- Specified by:
belowSamplesGreater
in interfaceTestSortedSetGenerator<K extends @Nullable java.lang.Object>
-
aboveSamplesLesser
public K aboveSamplesLesser()
Description copied from interface:TestSortedSetGenerator
Returns an element greater than theTestContainerGenerator.samples()
but less thanTestSortedSetGenerator.aboveSamplesGreater()
.- Specified by:
aboveSamplesLesser
in interfaceTestSortedSetGenerator<K extends @Nullable java.lang.Object>
-
aboveSamplesGreater
public K aboveSamplesGreater()
Description copied from interface:TestSortedSetGenerator
Returns an element greater than theTestContainerGenerator.samples()
and greater thanTestSortedSetGenerator.aboveSamplesLesser()
.- Specified by:
aboveSamplesGreater
in interfaceTestSortedSetGenerator<K extends @Nullable java.lang.Object>
-
-