Java UUID from uuidFromThriftBinary(byte[] uuidThriftBytes)

Here you can find the source of uuidFromThriftBinary(byte[] uuidThriftBytes)

Description

uuid From Thrift Binary

License

Apache License

Declaration

public static UUID uuidFromThriftBinary(byte[] uuidThriftBytes) 

Method Source Code


//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());
    }
}

Related

  1. UUIDFromBytes(byte[] array)
  2. uuidFromBytes(byte[] b)
  3. uuidFromBytes(byte[] bytes)
  4. uuidFromMsftBinary(byte[] uuidMsftBytes)