com.google.common.collect.testing
Class TestStringSortedSetGenerator
java.lang.Object
com.google.common.collect.testing.TestStringSetGenerator
com.google.common.collect.testing.TestStringSortedSetGenerator
- All Implemented Interfaces:
- TestCollectionGenerator<String>, TestContainerGenerator<Collection<String>,String>, TestSetGenerator<String>
- Direct Known Subclasses:
- SetGenerators.ImmutableSortedSetCopyOfGenerator, SetGenerators.ImmutableSortedSetHeadsetGenerator, SetGenerators.ImmutableSortedSetSubsetGenerator, SetGenerators.ImmutableSortedSetTailsetGenerator
public abstract class TestStringSortedSetGenerator
- extends TestStringSetGenerator
Create string sets for testing collections that are sorted by natural
ordering.
This class is GWT compatible.
- Author:
- Jared Levy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestStringSortedSetGenerator
public TestStringSortedSetGenerator()
create
protected abstract SortedSet<String> create(String[] elements)
- Specified by:
create
in class TestStringSetGenerator
order
public List<String> order(List<String> insertionOrder)
- Sorts the elements by their natural ordering.
- Specified by:
order
in interface TestContainerGenerator<Collection<String>,String>
- Overrides:
order
in class TestStringSetGenerator
Copyright © 2010-2011. All Rights Reserved.