@Test void fromUndashed() { assertEquals(EXPECTED_DASHED_UUID, UuidUtils.fromUndashed(ACTUAL_UNDASHED_UUID), "UUIDs do not match"); }
public static UUID fromUndashed(final String string) { Objects.requireNonNull(string, "string"); Preconditions.checkArgument(string.length() == 32, "Length is incorrect"); return new UUID( Long.parseUnsignedLong(string.substring(0, 16), 16), Long.parseUnsignedLong(string.substring(16), 16) ); }
UuidUtils { public static UUID fromUndashed(final String string) { Objects.requireNonNull(string, "string"); Preconditions.checkArgument(string.length() == 32, "Length is incorrect"); return new UUID( Long.parseUnsignedLong(string.substring(0, 16), 16), Long.parseUnsignedLong(string.substring(16), 16) ); } }
UuidUtils { public static UUID fromUndashed(final String string) { Objects.requireNonNull(string, "string"); Preconditions.checkArgument(string.length() == 32, "Length is incorrect"); return new UUID( Long.parseUnsignedLong(string.substring(0, 16), 16), Long.parseUnsignedLong(string.substring(16), 16) ); } private  UuidUtils(); }
UuidUtils { public static UUID fromUndashed(final String string) { Objects.requireNonNull(string, "string"); Preconditions.checkArgument(string.length() == 32, "Length is incorrect"); return new UUID( Long.parseUnsignedLong(string.substring(0, 16), 16), Long.parseUnsignedLong(string.substring(16), 16) ); } private  UuidUtils(); static UUID fromUndashed(final String string); static String toUndashed(final UUID uuid); static UUID generateOfflinePlayerUuid(String username); }
UuidUtils { public static UUID fromUndashed(final String string) { Objects.requireNonNull(string, "string"); Preconditions.checkArgument(string.length() == 32, "Length is incorrect"); return new UUID( Long.parseUnsignedLong(string.substring(0, 16), 16), Long.parseUnsignedLong(string.substring(16), 16) ); } private  UuidUtils(); static UUID fromUndashed(final String string); static String toUndashed(final UUID uuid); static UUID generateOfflinePlayerUuid(String username);  }