Package org.instancio.generator.lang
Class CharacterGenerator
- java.lang.Object
-
- org.instancio.generator.AbstractRandomGenerator<Character>
-
- org.instancio.generator.lang.CharacterGenerator
-
- All Implemented Interfaces:
Generator<Character>
,GeneratorSpec<Character>
public class CharacterGenerator extends AbstractRandomGenerator<Character>
-
-
Constructor Summary
Constructors Constructor Description CharacterGenerator(GeneratorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Character
generate()
Returns a generated value.GeneratedHints
getHints()
Returns hints, including collection sizes and whether values are nullable.-
Methods inherited from class org.instancio.generator.AbstractRandomGenerator
getContext, random
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.instancio.Generator
isDelegating, setDelegate, targetClass
-
-
-
-
Constructor Detail
-
CharacterGenerator
public CharacterGenerator(GeneratorContext context)
-
-
Method Detail
-
generate
public Character generate()
Description copied from interface:Generator
Returns a generated value. By default, generated values are random.Generation parameters for common types such as strings, numbers, collections, etc. can be customised by passing in custom generators.
- Returns:
- generated value
-
getHints
public GeneratedHints getHints()
Description copied from interface:Generator
Returns hints, including collection sizes and whether values are nullable.- Returns:
- generated hints
-
-