com.google.common.collect.testing
Class TestIntegerSortedSetGenerator

java.lang.Object
  extended by com.google.common.collect.testing.TestIntegerSetGenerator
      extended by 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

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

Constructor Detail

TestIntegerSortedSetGenerator

public TestIntegerSortedSetGenerator()
Method Detail

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.