Class UUIDConverter

java.lang.Object
de.chojo.sadu.core.conversion.UUIDConverter

public final class UUIDConverter extends Object
Convert uuids to bytes and vice versa
  • Method Details

    • convert

      public static byte[] convert(UUID uuid)
      Convert a uuid to a byte array
      Parameters:
      uuid - uuid
      Returns:
      uuid as byte array
    • convert

      public static UUID convert(byte[] bytes)
      Convert a byte array to a uuid.
      Parameters:
      bytes - bytes
      Returns:
      new uuid instance