Package com.inmobi.ads.utils
Object UUIDGenerator
-
- All Implemented Interfaces:
public class UUIDGeneratorUtility class to generate UUIDs. The UUID is generated using the UUID class.
NOTE - This class primarily helps in mocking UUID generation in tests as the UUID class has been moved to tbe part of Java Platform Module System (JPMS), which is not mock-able.
-
-
Field Summary
Fields Modifier and Type Field Description public final static UUIDGeneratorINSTANCE
-
Method Summary
Modifier and Type Method Description final StringgenerateNew()Generates a new UUID and returns it as a string. -
-
Method Detail
-
generateNew
final String generateNew()
Generates a new UUID and returns it as a string.
- Returns:
A string representation of the generated UUID.
-
-
-
-