List of utility methods to do UUID Create
String | generate() generate return generate(false);
|
String | generate() generate String s = UUID.randomUUID().toString();
return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23)
+ s.substring(24, 36);
|
String | generate() generate UUID uuid = UUID.randomUUID(); return uuid.toString().replace("-", ""); |
String | generate() Generates a unique identifier UUID uuid = UUID.randomUUID(); return uuid.toString().replaceAll("-", "").toUpperCase(); |
String | generateApiAccesskeyId() generate Api Accesskey Id String uuid = generateUUID(); return "ID" + uuid.substring(0, 10); |
String[] | generateAppIds(int noOfAppIdsToGenerate) generate App Ids List<String> appIds = new ArrayList<>(); for (int i = 0; i < noOfAppIdsToGenerate; i++) { UUID uuid = UUID.randomUUID(); genAppIds.add(uuid.toString()); appIds.add(uuid.toString()); return appIds.toArray(new String[0]); |
String | generateAttributeId() generate Attribute Id return getAttributeIdPrefix() + generateUniqueId();
|
String | generateBoundary(final String value) generate Boundary return value + "_" + UUID.randomUUID().toString(); |
String | generateClientId() Generates a random UUID suitable for use as MQTT client ID. return UUID.randomUUID().toString();
|
String | generateConnectionId() generate Connection Id return UUID.randomUUID().toString();
|