Class IDMakerUtils

java.lang.Object
com.maker.idmaker.IDMakerUtils

public class IDMakerUtils extends Object
Utility class for creating timestamped random IDs.
Since:
2024. 5. 31.
Author:
yongjunhong
  • Method Details

    • createTimestampedRandomID

      public static String createTimestampedRandomID(int length, GenerationType generationType)
      Creates a timestamped random ID.
      Parameters:
      length - the length of the random part of the ID
      generationType - the type of characters to use for the random part of the ID
      Returns:
      a timestamped random ID
      Throws:
      IllegalArgumentException - if an invalid GenerationType is provided