Class SetGenerators.ContiguousSetDescendingGenerator
- java.lang.Object
-
- com.google.common.collect.testing.TestIntegerSetGenerator
-
- com.google.common.collect.testing.TestIntegerSortedSetGenerator
-
- com.google.common.collect.testing.google.SetGenerators.ContiguousSetDescendingGenerator
-
- All Implemented Interfaces:
TestCollectionGenerator<Integer>
,TestContainerGenerator<Collection<Integer>,Integer>
,TestSetGenerator<Integer>
- Enclosing class:
- SetGenerators
@GwtIncompatible public static class SetGenerators.ContiguousSetDescendingGenerator extends TestIntegerSortedSetGenerator
-
-
Constructor Summary
Constructors Constructor Description ContiguousSetDescendingGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SortedSet<Integer>
create(Integer[] elements)
List<Integer>
order(List<Integer> insertionOrder)
Sorts the elements in reverse natural order.-
Methods inherited from class com.google.common.collect.testing.TestIntegerSetGenerator
create, createArray, samples
-
-
-
-
Constructor Detail
-
ContiguousSetDescendingGenerator
public ContiguousSetDescendingGenerator()
-
-
Method Detail
-
create
protected SortedSet<Integer> create(Integer[] elements)
- Specified by:
create
in classTestIntegerSortedSetGenerator
-
order
public List<Integer> order(List<Integer> insertionOrder)
Sorts the elements in reverse natural order.- Specified by:
order
in interfaceTestContainerGenerator<Collection<Integer>,Integer>
- Overrides:
order
in classTestIntegerSortedSetGenerator
-
-