com.google.common.collect.testing
Class TestStringSortedSetGenerator

java.lang.Object
  extended by com.google.common.collect.testing.TestStringSetGenerator
      extended by com.google.common.collect.testing.TestStringSortedSetGenerator
All Implemented Interfaces:
TestCollectionGenerator<String>, TestContainerGenerator<Collection<String>,String>, TestSetGenerator<String>
Direct Known Subclasses:
SetGenerators.ImmutableSortedSetCopyOfGenerator, SetGenerators.ImmutableSortedSetDescendingGenerator, SetGenerators.ImmutableSortedSetHeadsetGenerator, SetGenerators.ImmutableSortedSetSubsetGenerator, SetGenerators.ImmutableSortedSetTailsetGenerator

@GwtCompatible
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

Constructor Summary
TestStringSortedSetGenerator()
           
 
Method Summary
protected abstract  SortedSet<String> create(String[] elements)
           
 List<String> order(List<String> insertionOrder)
          Sorts the elements by their natural ordering.
 
Methods inherited from class com.google.common.collect.testing.TestStringSetGenerator
create, createArray, samples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestStringSortedSetGenerator

public TestStringSortedSetGenerator()
Method Detail

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-2012. All Rights Reserved.