public UUID toUuid ( ) { if ( mValue . length != 16 ) { throw new UnsupportedOperationException ( "Only Identifiers backed by a byte array with length of exactly 16 can be UUIDs." ) ; } LongBuffer buf = ByteBuffer . wrap ( mValue ) . asLongBuffer ( ) ; return new UUID ( buf . get ( ) , buf . get ( ) ) ; }
Gives you the Identifier as a UUID if possible .