Class RFC4122.Version4
java.lang.Object
com.pholser.junit.quickcheck.generator.Generator<UUID>
com.pholser.junit.quickcheck.generator.java.util.RFC4122.AbstractUUIDGenerator
com.pholser.junit.quickcheck.generator.java.util.RFC4122.Version4
- Enclosing class:
- RFC4122
Produces values of type
UUID that are RFC 4122 Version 4
identifiers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(SourceOfRandomness random, GenerationStatus status) Generates a value, possibly influenced by a source of randomness and metadata about the generation.Methods inherited from class com.pholser.junit.quickcheck.generator.java.util.RFC4122.AbstractUUIDGenerator
newUUID, setVariant, setVersionMethods inherited from class com.pholser.junit.quickcheck.generator.Generator
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, doShrink, gen, gen, hasComponents, magnitude, narrow, numberOfNeededComponents, provide, shrink, types
-
Constructor Details
-
Version4
public Version4()
-
-
Method Details
-
generate
Description copied from interface:GenGenerates a value, possibly influenced by a source of randomness and metadata about the generation.- Parameters:
random- source of randomness to be used when generating the valuestatus- an object that can be used to influence the generated value. For example, generating lists can use thesizemethod to generate lists with a given number of elements.- Returns:
- the generated value
-