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
@NullMarked
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 -
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
-
TestIntegerSortedSetGenerator
public TestIntegerSortedSetGenerator()
-
-
Method Details
-
create
- Specified by:
createin classTestIntegerSetGenerator
-
order
Sorts the elements by their natural ordering.- Specified by:
orderin interfaceTestContainerGenerator<Collection<Integer>, Integer>- Overrides:
orderin classTestIntegerSetGenerator
-