public static UUID from32 ( byte [ ] data , int offset , boolean littleEndian ) { if ( data == null || offset < 0 || data . length <= ( offset + 3 ) || ( Integer . MAX_VALUE - 3 ) < offset ) { return null ; } int v0 , v1 , v2 , v3 ; if ( littleEndian ) { v0 = data [ offset + 3 ] & 0xFF ; v1 = data [ offset + 2 ] & 0xFF ; v2 = data [ offset + 1 ] & 0xFF ; v3 = data [ offset + 0 ] & 0xFF ; } else { v0 = data [ offset + 0 ] & 0xFF ; v1 = data [ offset + 1 ] & 0xFF ; v2 = data [ offset + 2 ] & 0xFF ; v3 = data [ offset + 3 ] & 0xFF ; } return fromBase ( v0 , v1 , v2 , v3 ) ; }
Create a UUID instance from 32 - bit UUID data .