Interface IdGenerator

All Known Implementing Classes:
JdkSha256HexIdGenerator, RandomIdGenerator

public interface IdGenerator
Interface for generating unique document IDs.
Author:
Aliakbar Jafarpour, Christian Tzolov
  • Method Summary

    Modifier and Type
    Method
    Description
    generateId(Object... contents)
    Generate a unique ID for the given content.
  • Method Details

    • generateId

      String generateId(Object... contents)
      Generate a unique ID for the given content. Note: some generator, such as the the random generator might not dependant on or use the content parameters.
      Parameters:
      contents - the content to generate an ID for.
      Returns:
      the generated ID.