@GwtCompatible public abstract class TestStringListMultimapGenerator extends Object implements TestListMultimapGenerator<String,String>
A skeleton generator for a ListMultimap implementation.
| Constructor and Description |
|---|
TestStringListMultimapGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ListMultimap<String,String> |
create(Map.Entry<String,String>[] entries) |
ListMultimap<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() |
public SampleElements<Map.Entry<String,String>> samples()
TestContainerGeneratorReturns the sample elements that this generate populates its container with.
samples in interface TestContainerGenerator<ListMultimap<String,String>,Map.Entry<String,String>>public SampleElements<String> sampleKeys()
sampleKeys in interface TestMultimapGenerator<String,String,ListMultimap<String,String>>public SampleElements<String> sampleValues()
sampleValues in interface TestMultimapGenerator<String,String,ListMultimap<String,String>>public Collection<String> createCollection(Iterable<? extends String> values)
createCollection in interface TestMultimapGenerator<String,String,ListMultimap<String,String>>public final ListMultimap<String,String> create(Object... entries)
TestContainerGeneratorCreates 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.
create in interface TestContainerGenerator<ListMultimap<String,String>,Map.Entry<String,String>>public final Map.Entry<String,String>[] createArray(int length)
TestContainerGeneratorHelper method to create an array of the appropriate type used by this generator. The returned array will contain only nulls.
createArray in interface TestContainerGenerator<ListMultimap<String,String>,Map.Entry<String,String>>public final String[] createKeyArray(int length)
createKeyArray in interface TestMultimapGenerator<String,String,ListMultimap<String,String>>public final String[] createValueArray(int length)
createValueArray in interface TestMultimapGenerator<String,String,ListMultimap<String,String>>