Here you can find the source of uuidFromThriftBinary(byte[] uuidThriftBytes)
public static UUID uuidFromThriftBinary(byte[] uuidThriftBytes)
//package com.java2s; /*//w w w . ja v a2 s. c o m Apache Licensed Code modified from: */ import java.nio.ByteBuffer; import java.util.UUID; public class Main { public static UUID uuidFromThriftBinary(byte[] uuidThriftBytes) { ByteBuffer bb = ByteBuffer.wrap(uuidThriftBytes); return new UUID(bb.getLong(), bb.getLong()); } }