com.google.common.collect.testing
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.
This class is GWT compatible.
- Author:
- Chris Povirk, Jared Levy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestIntegerSortedSetGenerator
public TestIntegerSortedSetGenerator()
create
protected abstract SortedSet<Integer> create(Integer[] elements)
- Specified by:
create
in class TestIntegerSetGenerator
order
public List<Integer> order(List<Integer> insertionOrder)
- Sorts the elements by their natural ordering.
- Specified by:
order
in interface TestContainerGenerator<Collection<Integer>,Integer>
- Overrides:
order
in class TestIntegerSetGenerator
Copyright © 2010-2012. All Rights Reserved.