Here you can find the source of UUIDFromBytes(byte[] array)
public static UUID UUIDFromBytes(byte[] array)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; import java.util.UUID; public class Main { public static UUID UUIDFromBytes(byte[] array) { if (array == null) return null; ByteBuffer buf = ByteBuffer.wrap(array); return new UUID(buf.getLong(), buf.getLong()); }//from ww w . j av a 2 s. c om }