Class TestIntegerSortedSetGenerator
- java.lang.Object
-
- com.google.common.collect.testing.TestIntegerSetGenerator
-
- com.google.common.collect.testing.TestIntegerSortedSetGenerator
-
- All Implemented Interfaces:
TestCollectionGenerator<java.lang.Integer>,TestContainerGenerator<java.util.Collection<java.lang.Integer>,java.lang.Integer>,TestSetGenerator<java.lang.Integer>
- Direct Known Subclasses:
SetGenerators.AbstractContiguousSetGenerator
@GwtCompatible public abstract class TestIntegerSortedSetGenerator extends TestIntegerSetGenerator
Create integer sets for testing collections that are sorted by natural ordering.
-
-
Constructor Summary
Constructors Constructor Description TestIntegerSortedSetGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.SortedSet<java.lang.Integer>create(java.lang.Integer[] elements)java.util.List<java.lang.Integer>order(java.util.List<java.lang.Integer> insertionOrder)Sorts the elements by their natural ordering.-
Methods inherited from class com.google.common.collect.testing.TestIntegerSetGenerator
create, createArray, samples
-
-
-
-
Method Detail
-
create
protected abstract java.util.SortedSet<java.lang.Integer> create(java.lang.Integer[] elements)
- Specified by:
createin classTestIntegerSetGenerator
-
order
public java.util.List<java.lang.Integer> order(java.util.List<java.lang.Integer> insertionOrder)
Sorts the elements by their natural ordering.- Specified by:
orderin interfaceTestContainerGenerator<java.util.Collection<java.lang.Integer>,java.lang.Integer>- Overrides:
orderin classTestIntegerSetGenerator
-
-