@Test public void byte_string_compatibility_with_zk_group_uuid_util() { UUID uuid = UUID.fromString("67dfd496-ea02-4720-b13d-83a462168b1d"); UUID result = UuidUtil.fromByteString(ByteString.copyFrom(UUIDUtil.serialize(uuid))); assertEquals(uuid, result); }
public static UUID fromByteString(ByteString bytes) { return parseOrThrow(bytes.toByteArray()); }
UuidUtil { public static UUID fromByteString(ByteString bytes) { return parseOrThrow(bytes.toByteArray()); } }
UuidUtil { public static UUID fromByteString(ByteString bytes) { return parseOrThrow(bytes.toByteArray()); } private  UuidUtil(); }
UuidUtil { public static UUID fromByteString(ByteString bytes) { return parseOrThrow(bytes.toByteArray()); } private  UuidUtil(); static Optional<UUID> parse(String uuid); static UUID parseOrNull(String uuid); static UUID parseOrThrow(String uuid); static UUID parseOrThrow(byte[] bytes); static boolean isUuid(String uuid); static byte[] toByteArray(UUID uuid); static ByteString toByteString(UUID uuid); static UUID fromByteString(ByteString bytes); static UUID fromByteStringOrNull(ByteString bytes); static UUID fromByteStringOrUnknown(ByteString bytes); static List<UUID> fromByteStrings(Collection<ByteString> byteStringCollection); static List<UUID> filterKnown(Collection<UUID> uuids); }
UuidUtil { public static UUID fromByteString(ByteString bytes) { return parseOrThrow(bytes.toByteArray()); } private  UuidUtil(); static Optional<UUID> parse(String uuid); static UUID parseOrNull(String uuid); static UUID parseOrThrow(String uuid); static UUID parseOrThrow(byte[] bytes); static boolean isUuid(String uuid); static byte[] toByteArray(UUID uuid); static ByteString toByteString(UUID uuid); static UUID fromByteString(ByteString bytes); static UUID fromByteStringOrNull(ByteString bytes); static UUID fromByteStringOrUnknown(ByteString bytes); static List<UUID> fromByteStrings(Collection<ByteString> byteStringCollection); static List<UUID> filterKnown(Collection<UUID> uuids); static final UUID UNKNOWN_UUID; }