Package net.minestom.server.utils
Class UniqueIdUtils
java.lang.Object
net.minestom.server.utils.UniqueIdUtils
public final class UniqueIdUtils
extends java.lang.Object
An utilities class for
UUID
.-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.Pattern
UNIQUE_ID_PATTERN
-
Constructor Summary
Constructors Constructor Description UniqueIdUtils()
-
Method Summary
Modifier and Type Method Description static boolean
isUniqueId(java.lang.String input)
Checks whether theinput
string is anUUID
.
-
Field Details
-
UNIQUE_ID_PATTERN
public static final java.util.regex.Pattern UNIQUE_ID_PATTERN
-
-
Constructor Details
-
UniqueIdUtils
public UniqueIdUtils()
-
-
Method Details
-
isUniqueId
public static boolean isUniqueId(java.lang.String input)Checks whether theinput
string is anUUID
.- Parameters:
input
- The input string to be checked- Returns:
true
if the input an unique identifier, otherwisefalse
-