public static UUID nameUUIDFromBytes(byte[] name) {
		MessageDigest md;
		try {
			md = MessageDigest.getInstance("MD5");
		} catch (NoSuchAlgorithmException nsae) {
			throw new InternalError("MD5 not supported");
		}
		byte[] md5Bytes = md.digest(name);
		md5Bytes[6] &= 0x0f; /* clear version */
		md5Bytes[6] |= 0x30; /* set to version 3 */
		md5Bytes[8] &= 0x3f; /* clear variant */
		md5Bytes[8] |= 0x80; /* set to IETF variant */
		return new UUID(md5Bytes);
	}
public static UUID nameUUIDFromBytes ( byte [ ] name ) { MessageDigest md ; try { md = MessageDigest . getInstance ( "MD5" ) ; } catch ( NoSuchAlgorithmException nsae ) { throw new InternalError ( "MD5 not supported" ) ; } byte [ ] md5Bytes = md . digest ( name ) ; md5Bytes [ 6 ] &= 0x0f ; md5Bytes [ 6 ] |= 0x30 ; md5Bytes [ 8 ] &= 0x3f ; md5Bytes [ 8 ] |= 0x80 ; return new UUID ( md5Bytes ) ; }
根据指定的字节数组获取类型 3（基于名称的）UUID 的静态工厂。

@param name 用于构造 UUID 的字节数组。

@return 根据指定数组生成的 {@code UUID}