com.google.common.collect.testing
Class TestStringSortedMapGenerator
java.lang.Object
com.google.common.collect.testing.TestStringMapGenerator
com.google.common.collect.testing.TestStringSortedMapGenerator
- All Implemented Interfaces:
- TestContainerGenerator<Map<String,String>,Map.Entry<String,String>>, TestMapGenerator<String,String>, TestSortedMapGenerator<String,String>
- Direct Known Subclasses:
- SortedMapGenerators.ImmutableSortedMapGenerator
@GwtCompatible
public abstract class TestStringSortedMapGenerator
- extends TestStringMapGenerator
- implements TestSortedMapGenerator<String,String>
Implementation helper for TestMapGenerator for use with sorted maps of strings.
This class is GWT compatible.
- Author:
- Chris Povirk
|
Method Summary |
Map.Entry<String,String> |
aboveSamplesGreater()
Returns an entry with a key greater than the keys of the TestContainerGenerator.samples()
and greater than the key of TestSortedMapGenerator.aboveSamplesLesser(). |
Map.Entry<String,String> |
aboveSamplesLesser()
Returns an entry with a key greater than the keys of the TestContainerGenerator.samples()
but less than the key of TestSortedMapGenerator.aboveSamplesGreater(). |
Map.Entry<String,String> |
belowSamplesGreater()
Returns an entry with a key less than the keys of the TestContainerGenerator.samples()
but greater than the key of TestSortedMapGenerator.belowSamplesLesser(). |
Map.Entry<String,String> |
belowSamplesLesser()
Returns an entry with a key less than the keys of the TestContainerGenerator.samples()
and less than the key of TestSortedMapGenerator.belowSamplesGreater(). |
protected abstract SortedMap<String,String> |
create(Map.Entry<String,String>[] entries)
|
SortedMap<String,String> |
create(Object... entries)
Creates a new container containing the given elements. |
Iterable<Map.Entry<String,String>> |
order(List<Map.Entry<String,String>> insertionOrder)
Returns the original element list, unchanged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestStringSortedMapGenerator
public TestStringSortedMapGenerator()
belowSamplesLesser
public Map.Entry<String,String> belowSamplesLesser()
- Description copied from interface:
TestSortedMapGenerator
- Returns an entry with a key less than the keys of the
TestContainerGenerator.samples()
and less than the key of TestSortedMapGenerator.belowSamplesGreater().
- Specified by:
belowSamplesLesser in interface TestSortedMapGenerator<String,String>
belowSamplesGreater
public Map.Entry<String,String> belowSamplesGreater()
- Description copied from interface:
TestSortedMapGenerator
- Returns an entry with a key less than the keys of the
TestContainerGenerator.samples()
but greater than the key of TestSortedMapGenerator.belowSamplesLesser().
- Specified by:
belowSamplesGreater in interface TestSortedMapGenerator<String,String>
aboveSamplesLesser
public Map.Entry<String,String> aboveSamplesLesser()
- Description copied from interface:
TestSortedMapGenerator
- Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples()
but less than the key of TestSortedMapGenerator.aboveSamplesGreater().
- Specified by:
aboveSamplesLesser in interface TestSortedMapGenerator<String,String>
aboveSamplesGreater
public Map.Entry<String,String> aboveSamplesGreater()
- Description copied from interface:
TestSortedMapGenerator
- Returns an entry with a key greater than the keys of the
TestContainerGenerator.samples()
and greater than the key of TestSortedMapGenerator.aboveSamplesLesser().
- Specified by:
aboveSamplesGreater in interface TestSortedMapGenerator<String,String>
order
public Iterable<Map.Entry<String,String>> order(List<Map.Entry<String,String>> insertionOrder)
- Description copied from class:
TestStringMapGenerator
- Returns the original element list, unchanged.
- Specified by:
order in interface TestContainerGenerator<Map<String,String>,Map.Entry<String,String>>- Overrides:
order in class TestStringMapGenerator
create
protected abstract SortedMap<String,String> create(Map.Entry<String,String>[] entries)
- Specified by:
create in class TestStringMapGenerator
create
public SortedMap<String,String> create(Object... entries)
- Description copied from interface:
TestContainerGenerator
- Creates a new container containing the given elements. TODO: would be nice
to figure out how to use E... or E[] as a parameter type, but this doesn't
seem to work because Java creates an array of the erased type.
- Specified by:
create in interface TestContainerGenerator<Map<String,String>,Map.Entry<String,String>>- Specified by:
create in interface TestSortedMapGenerator<String,String>- Overrides:
create in class TestStringMapGenerator
Copyright © 2010-2013. All Rights Reserved.