Interface IdGenerator

All Known Implementing Classes:
IdGenerator.SequenceUuidIdGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IdGenerator
Defines the contract to generate global unique identifiers.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Default implementation of the IdGenerator that will output some ids based on the following pattern : <uuid> + '-' + an incrementing sequence.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IdGenerator
    The default implementation of IdGenerator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new globally unique identifier.
  • Field Details

  • Method Details

    • generate

      String generate()
      Returns a new globally unique identifier.
      Returns:
      a new globally unique identifier.