public class RandomPrimitiveFactory<T> extends LoremIpsumObjectFactory<T>
Used by the ClassBasedFactory so that it doesn't have to manually create the wrapper types by trying to manually invoke a
Constructor.
See SUPPORTED_PRIMITIVE_CLASSES for a list of supported primitive types.
| Constructor and Description |
|---|
RandomPrimitiveFactory(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
T |
_createLoremIpsumObject(@Nullable Type[] genericMetaData,
@Nullable Map<String,ClassUsageInfo<?>> knownInstances,
LoremIpsumConfig loremIpsumConfig,
@Nullable List<Exception> exceptions) |
boolean |
isValidForType(Class<? super T> clazz)
Indicates whether the given type can be produced by creating one of the primitive types defined by
SUPPORTED_PRIMITIVE_CLASSES. |
createLoremIpsumObject, createLoremIpsumObject, createLoremIpsumObjectpublic boolean isValidForType(Class<? super T> clazz)
SUPPORTED_PRIMITIVE_CLASSES.isValidForType in class LoremIpsumObjectFactory<T>@Nullable public T _createLoremIpsumObject(@Nullable @Nullable Type[] genericMetaData, @Nullable @Nullable Map<String,ClassUsageInfo<?>> knownInstances, LoremIpsumConfig loremIpsumConfig, @Nullable @Nullable List<Exception> exceptions)
knownInstances - Not used.loremIpsumConfig - Not used.exceptions - Not used.RandomCreator.getRandomT() method.LoremIpsumGenerator.getRandomInt(),
LoremIpsumGenerator.getRandomLong(),
LoremIpsumGenerator.getRandomFloat(),
LoremIpsumGenerator.getRandomBoolean(),
LoremIpsumGenerator.getRandomChar(),
LoremIpsumGenerator.getRandomByte(),
LoremIpsumGenerator.getRandomShort(),
LoremIpsumGenerator.getRandomDouble()Copyright © 2019–2020. All rights reserved.