10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.util; 27 28 import java.security.*; 29 30 import jdk.internal.misc.JavaLangAccess; 31 import jdk.internal.misc.SharedSecrets; 32 33 /** 34 * A class that represents an immutable universally unique identifier (UUID). 35 * A UUID represents a 128-bit value. 36 * 37 * <p> There exist different variants of these global identifiers. The methods 38 * of this class are for manipulating the Leach-Salz variant, although the 39 * constructors allow the creation of any variant of UUID (described below). 40 * 41 * <p> The layout of a variant 2 (Leach-Salz) UUID is as follows: 42 * 43 * The most significant long consists of the following unsigned fields: 44 * <pre> 45 * 0xFFFFFFFF00000000 time_low 46 * 0x00000000FFFF0000 time_mid 47 * 0x000000000000F000 version 48 * 0x0000000000000FFF time_hi 49 * </pre> 50 * The least significant long consists of the following unsigned fields: 51 * <pre> | 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.util; 27 28 import java.security.*; 29 30 import jdk.internal.access.JavaLangAccess; 31 import jdk.internal.access.SharedSecrets; 32 33 /** 34 * A class that represents an immutable universally unique identifier (UUID). 35 * A UUID represents a 128-bit value. 36 * 37 * <p> There exist different variants of these global identifiers. The methods 38 * of this class are for manipulating the Leach-Salz variant, although the 39 * constructors allow the creation of any variant of UUID (described below). 40 * 41 * <p> The layout of a variant 2 (Leach-Salz) UUID is as follows: 42 * 43 * The most significant long consists of the following unsigned fields: 44 * <pre> 45 * 0xFFFFFFFF00000000 time_low 46 * 0x00000000FFFF0000 time_mid 47 * 0x000000000000F000 version 48 * 0x0000000000000FFF time_hi 49 * </pre> 50 * The least significant long consists of the following unsigned fields: 51 * <pre> |