Class UUIDStringGenerator
java.lang.Object
org.instancio.internal.generator.AbstractGenerator<String>
org.instancio.internal.generator.text.UUIDStringGenerator
- All Implemented Interfaces:
Generator<String>
,GeneratorSpec<String>
,UUIDStringGeneratorSpec
public class UUIDStringGenerator
extends AbstractGenerator<String>
implements UUIDStringGeneratorSpec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the public API method name of the generator spec.Returns a generated value.Generate UUID String in uppercase characters.Generate UUID String without dashes.Methods inherited from class org.instancio.internal.generator.AbstractGenerator
getContext, hints
-
Constructor Details
-
UUIDStringGenerator
-
-
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<String>
- Returns:
- spec name if defined, or
null
otherwise
-
upperCase
Description copied from interface:UUIDStringGeneratorSpec
Generate UUID String in uppercase characters.- Specified by:
upperCase
in interfaceUUIDStringGeneratorSpec
- Returns:
- spec builder
-
withoutDashes
Description copied from interface:UUIDStringGeneratorSpec
Generate UUID String without dashes.- Specified by:
withoutDashes
in interfaceUUIDStringGeneratorSpec
- Returns:
- spec builder
-
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.
-