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
- Author:
- Kevin Bourrillion, Jared Levy, Hayward Chan
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TestIntegerSetGenerator
create, createArray, samplesModifier and TypeMethodDescriptionCreates a new container containing the given elements.Integer[]createArray(int length) Helper method to create an array of the appropriate type used by this generator.samples()Returns the sample elements that this generate populates its container with.
-
Constructor Details
-
ContiguousSetDescendingGenerator
public ContiguousSetDescendingGenerator()
-
-
Method Details
-
create
- Specified by:
createin classTestIntegerSortedSetGenerator
-
order
Sorts the elements in reverse natural order.- Specified by:
orderin interfaceTestContainerGenerator<Collection<Integer>, Integer>- Overrides:
orderin classTestIntegerSortedSetGenerator
-