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