All Known Subinterfaces:
DeterministicUuidMapper, MemoizedUuidMapper
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 UuidMapper
This interface allows for mapping objects' UUIDs, for example when cloning objects. Separate interface is needed to emphasize that it works with UUID formatted strings
Author:
krylov
  • Method Summary

    Modifier and Type
    Method
    Description
    map(String oldId)
    Generates a new UUID string for given source UUID
    static UuidMapper
     
  • Method Details

    • random

      static UuidMapper random()
      Returns:
      mapper that returns a random UUID every time
    • map

      String map(String oldId)
      Generates a new UUID string for given source UUID
      Parameters:
      oldId - old UUID
      Returns:
      new UUID