Class RFC4122.Version4

All Implemented Interfaces:
Gen<UUID>, Shrink<UUID>
Enclosing class:
RFC4122

public static class RFC4122.Version4 extends RFC4122.AbstractUUIDGenerator
Produces values of type UUID that are RFC 4122 Version 4 identifiers.
  • Constructor Details

    • Version4

      public Version4()
  • Method Details

    • generate

      public UUID generate(SourceOfRandomness random, GenerationStatus status)
      Description copied from interface: Gen
      Generates 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 value
      status - an object that can be used to influence the generated value. For example, generating lists can use the size method to generate lists with a given number of elements.
      Returns:
      the generated value