public class PrimitiveGenerator extends java.lang.Object implements InstanceProvider
Modifier and Type | Field and Description |
---|---|
static PrimitiveGenerator |
INSTANCE
Shared instance of this generator.
|
static java.lang.String |
STRING_DEFAULT
Default value for Strings.
|
Constructor and Description |
---|
PrimitiveGenerator(java.lang.String stringDefault) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Class<?> type)
Create an instance given a type, if possible.
|
java.lang.String |
getStringDefault()
Retrieve the string default.
|
public static final java.lang.String STRING_DEFAULT
public static PrimitiveGenerator INSTANCE
public java.lang.String getStringDefault()
public java.lang.Object create(@Nullable java.lang.Class<?> type)
InstanceProvider
create
in interface InstanceProvider
type
- - type to create.