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 the input string is an UUID.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • isUniqueId

      public static boolean isUniqueId​(java.lang.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