Class UniqueIdUtils

java.lang.Object
net.minestom.server.utils.UniqueIdUtils

@Internal public final class UniqueIdUtils extends Object
An utilities class for UUID.
  • Field Details

    • UUID_GROUP_REPLACEMENT

      public static final String UUID_GROUP_REPLACEMENT
      See Also:
    • UNIQUE_ID_PATTERN

      public static final Pattern UNIQUE_ID_PATTERN
  • Method Details

    • isUniqueId

      public static boolean isUniqueId(@NotNull @NotNull String input)
      Checks whether the input string is an UUID.
      Parameters:
      input - The input string to be checked
      Returns:
      true if the input an unique identifier, otherwise false