public class EnumFactory extends RandomFactoryBase<Enum<?>>
| Constructor and Description |
|---|
EnumFactory(Class<?> enumClass,
RandomValueGenerator randomValueGenerator)
Construct a new Factory.
|
| Modifier and Type | Method and Description |
|---|---|
Enum<?> |
create()
Create an Enum constant of the specified Enum type.
|
getRandomValueGeneratorpublic EnumFactory(Class<?> enumClass, RandomValueGenerator randomValueGenerator) throws IllegalArgumentException
enumClass - The type of Enum to create Enum constants of.randomValueGenerator - A random value generator used by the Factory to generate random values.IllegalArgumentException - If any of the required parameters are deemed illegal. For example, if either is null.Copyright © 2010–2020 meanbean. All rights reserved.