public class PrimitiveGenerator extends Object implements InstanceProvider
| Modifier and Type | Field and Description |
|---|---|
static PrimitiveGenerator |
INSTANCE
Shared instance of this generator.
|
static String |
STRING_DEFAULT
Default value for Strings.
|
| Constructor and Description |
|---|
PrimitiveGenerator(String stringDefault) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Class<?> type)
Create an instance given a type, if possible.
|
String |
getStringDefault()
Retrieve the string default.
|
public static final String STRING_DEFAULT
public static PrimitiveGenerator INSTANCE
public PrimitiveGenerator(String stringDefault)
public String getStringDefault()
public Object create(@Nullable Class<?> type)
InstanceProvidercreate in interface InstanceProvidertype - - type to create.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.