Class UUIDGenerator

java.lang.Object
com.fasterxml.uuid.UUIDGenerator
Direct Known Subclasses:
NoArgGenerator, StringArgGenerator

public abstract class UUIDGenerator extends Object
Minimal "tag" base class from which all generator implementations derive. Actual generation methods are not included since different generators take different number of arguments.
Since:
3.0
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor is private to enforce singleton access.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static final long
    _toInt(byte[] buffer, int offset)
     
    protected static final long
    _toLong(byte[] buffer, int offset)
     
    protected static final long
    _toShort(byte[] buffer, int offset)
     
    abstract UUIDType
    Accessor for determining type of UUIDs (version) that this generator instance will produce.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UUIDGenerator

      protected UUIDGenerator()
      Constructor is private to enforce singleton access.
  • Method Details

    • getType

      public abstract UUIDType getType()
      Accessor for determining type of UUIDs (version) that this generator instance will produce.
    • _toLong

      protected static final long _toLong(byte[] buffer, int offset)
    • _toInt

      protected static final long _toInt(byte[] buffer, int offset)
    • _toShort

      protected static final long _toShort(byte[] buffer, int offset)