Package nl._42.beanie.generator
Class FirstEnumValueGenerator
- java.lang.Object
-
- nl._42.beanie.generator.FirstEnumValueGenerator
-
- All Implemented Interfaces:
ValueGenerator
public class FirstEnumValueGenerator extends Object implements ValueGenerator
-
-
Constructor Summary
Constructors Constructor Description FirstEnumValueGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
generate(Class<?> valueType)
Generate a new value of the specified type.
-
-
-
Method Detail
-
generate
public Object generate(Class<?> valueType)
Description copied from interface:ValueGenerator
Generate a new value of the specified type.- Specified by:
generate
in interfaceValueGenerator
- Parameters:
valueType
- the type of value- Returns:
- the generation value
-
-