|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.common.collect.testing.google.TestStringSetMultimapGenerator
@GwtCompatible public abstract class TestStringSetMultimapGenerator
A skeleton generator for a SetMultimap
implementation.
Constructor Summary | |
---|---|
TestStringSetMultimapGenerator()
|
Method Summary | |
---|---|
protected abstract SetMultimap<String,String> |
create(Map.Entry<String,String>[] entries)
|
SetMultimap<String,String> |
create(Object... entries)
Creates a new container containing the given elements. |
Map.Entry<String,String>[] |
createArray(int length)
Helper method to create an array of the appropriate type used by this generator. |
Collection<String> |
createCollection(Iterable<? extends String> values)
|
String[] |
createKeyArray(int length)
|
String[] |
createValueArray(int length)
|
Iterable<Map.Entry<String,String>> |
order(List<Map.Entry<String,String>> insertionOrder)
Returns the original element list, unchanged. |
SampleElements<String> |
sampleKeys()
|
SampleElements<Map.Entry<String,String>> |
samples()
Returns the sample elements that this generate populates its container with. |
SampleElements<String> |
sampleValues()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestStringSetMultimapGenerator()
Method Detail |
---|
public SampleElements<Map.Entry<String,String>> samples()
TestContainerGenerator
samples
in interface TestContainerGenerator<SetMultimap<String,String>,Map.Entry<String,String>>
public SampleElements<String> sampleKeys()
sampleKeys
in interface TestMultimapGenerator<String,String,SetMultimap<String,String>>
public SampleElements<String> sampleValues()
sampleValues
in interface TestMultimapGenerator<String,String,SetMultimap<String,String>>
public Collection<String> createCollection(Iterable<? extends String> values)
createCollection
in interface TestMultimapGenerator<String,String,SetMultimap<String,String>>
public final SetMultimap<String,String> create(Object... entries)
TestContainerGenerator
create
in interface TestContainerGenerator<SetMultimap<String,String>,Map.Entry<String,String>>
protected abstract SetMultimap<String,String> create(Map.Entry<String,String>[] entries)
public final Map.Entry<String,String>[] createArray(int length)
TestContainerGenerator
createArray
in interface TestContainerGenerator<SetMultimap<String,String>,Map.Entry<String,String>>
public final String[] createKeyArray(int length)
createKeyArray
in interface TestMultimapGenerator<String,String,SetMultimap<String,String>>
public final String[] createValueArray(int length)
createValueArray
in interface TestMultimapGenerator<String,String,SetMultimap<String,String>>
public Iterable<Map.Entry<String,String>> order(List<Map.Entry<String,String>> insertionOrder)
order
in interface TestContainerGenerator<SetMultimap<String,String>,Map.Entry<String,String>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |