Class UUIDGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<UUID>
org.instancio.internal.generator.util.UUIDGenerator
- All Implemented Interfaces:
Generator<UUID>
,GeneratorSpec<UUID>
,NullableGeneratorSpec<UUID>
-
Constructor Summary
-
Method Summary
Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints, isNullable, nullable, nullable
-
Constructor Details
-
UUIDGenerator
-
-
Method Details
-
apiMethod
Description copied from class:AbstractGenerator
Returns the public API method name of the generator spec. The returned name is used for reporting validation errors.- Specified by:
apiMethod
in classAbstractGenerator<UUID>
- Returns:
- spec name if defined, or
null
otherwise
-
generate
Description copied from interface:Generator
Returns a generated value.If this method produces random data, the data needs to be generated using the provided
Random
instance. This ensures generated values are reproducible for a given seed value.- Parameters:
random
- provider for generating random values- Returns:
- generated value or
null
if value is nullable, could not be generated, or generation is delegated to the engine
-