@GwtCompatible public abstract class TestEnumMapGenerator extends Object implements TestMapGenerator<AnEnum,String>
TestMapGenerator
for use with enum maps.
This class is GWT compatible.
Constructor and Description |
---|
TestEnumMapGenerator() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map<AnEnum,String> |
create(Map.Entry<AnEnum,String>[] entries) |
Map<AnEnum,String> |
create(Object... entries)
Creates a new container containing the given elements.
|
Map.Entry<AnEnum,String>[] |
createArray(int length)
Helper method to create an array of the appropriate type used by this
generator.
|
AnEnum[] |
createKeyArray(int length) |
String[] |
createValueArray(int length) |
Iterable<Map.Entry<AnEnum,String>> |
order(List<Map.Entry<AnEnum,String>> insertionOrder)
Returns the elements sorted in natural order.
|
SampleElements<Map.Entry<AnEnum,String>> |
samples()
Returns the sample elements that this generate populates its container
with.
|
public SampleElements<Map.Entry<AnEnum,String>> samples()
TestContainerGenerator
public final Map<AnEnum,String> create(Object... entries)
TestContainerGenerator
public final Map.Entry<AnEnum,String>[] createArray(int length)
TestContainerGenerator
createArray
in interface TestContainerGenerator<Map<AnEnum,String>,Map.Entry<AnEnum,String>>
public final AnEnum[] createKeyArray(int length)
createKeyArray
in interface TestMapGenerator<AnEnum,String>
public final String[] createValueArray(int length)
createValueArray
in interface TestMapGenerator<AnEnum,String>
Copyright © 2010-2013. All Rights Reserved.