Package com.maker.idmaker
Class IDMakerUtils
java.lang.Object
com.maker.idmaker.IDMakerUtils
Utility class for creating timestamped random IDs.
- Since:
- 2024. 5. 31.
- Author:
- yongjunhong
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createTimestampedRandomID
(int length, GenerationType generationType) Creates a timestamped random ID.
-
Method Details
-
createTimestampedRandomID
Creates a timestamped random ID.- Parameters:
length
- the length of the random part of the IDgenerationType
- 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
-