2
|
1 |
/*
|
|
2 |
* Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation. Sun designates this
|
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
|
9 |
* by Sun in the LICENSE file that accompanied this code.
|
|
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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
* have any questions.
|
|
24 |
*/
|
|
25 |
|
|
26 |
package java.util;
|
|
27 |
|
|
28 |
import java.security.*;
|
|
29 |
import java.io.IOException;
|
|
30 |
import java.io.UnsupportedEncodingException;
|
|
31 |
|
|
32 |
/**
|
|
33 |
* A class that represents an immutable universally unique identifier (UUID).
|
|
34 |
* A UUID represents a 128-bit value.
|
|
35 |
*
|
|
36 |
* <p> There exist different variants of these global identifiers. The methods
|
|
37 |
* of this class are for manipulating the Leach-Salz variant, although the
|
|
38 |
* constructors allow the creation of any variant of UUID (described below).
|
|
39 |
*
|
|
40 |
* <p> The layout of a variant 2 (Leach-Salz) UUID is as follows:
|
|
41 |
*
|
|
42 |
* The most significant long consists of the following unsigned fields:
|
|
43 |
* <pre>
|
|
44 |
* 0xFFFFFFFF00000000 time_low
|
|
45 |
* 0x00000000FFFF0000 time_mid
|
|
46 |
* 0x000000000000F000 version
|
|
47 |
* 0x0000000000000FFF time_hi
|
|
48 |
* </pre>
|
|
49 |
* The least significant long consists of the following unsigned fields:
|
|
50 |
* <pre>
|
|
51 |
* 0xC000000000000000 variant
|
|
52 |
* 0x3FFF000000000000 clock_seq
|
|
53 |
* 0x0000FFFFFFFFFFFF node
|
|
54 |
* </pre>
|
|
55 |
*
|
|
56 |
* <p> The variant field contains a value which identifies the layout of the
|
|
57 |
* {@code UUID}. The bit layout described above is valid only for a {@code
|
|
58 |
* UUID} with a variant value of 2, which indicates the Leach-Salz variant.
|
|
59 |
*
|
|
60 |
* <p> The version field holds a value that describes the type of this {@code
|
|
61 |
* UUID}. There are four different basic types of UUIDs: time-based, DCE
|
|
62 |
* security, name-based, and randomly generated UUIDs. These types have a
|
|
63 |
* version value of 1, 2, 3 and 4, respectively.
|
|
64 |
*
|
|
65 |
* <p> For more information including algorithms used to create {@code UUID}s,
|
|
66 |
* see <a href="http://www.ietf.org/rfc/rfc4122.txt"> <i>RFC 4122: A
|
|
67 |
* Universally Unique IDentifier (UUID) URN Namespace</i></a>, section 4.2
|
|
68 |
* "Algorithms for Creating a Time-Based UUID".
|
|
69 |
*
|
|
70 |
* @since 1.5
|
|
71 |
*/
|
|
72 |
public final class UUID implements java.io.Serializable, Comparable<UUID> {
|
|
73 |
|
|
74 |
/**
|
|
75 |
* Explicit serialVersionUID for interoperability.
|
|
76 |
*/
|
|
77 |
private static final long serialVersionUID = -4856846361193249489L;
|
|
78 |
|
|
79 |
/*
|
|
80 |
* The most significant 64 bits of this UUID.
|
|
81 |
*
|
|
82 |
* @serial
|
|
83 |
*/
|
|
84 |
private final long mostSigBits;
|
|
85 |
|
|
86 |
/*
|
|
87 |
* The least significant 64 bits of this UUID.
|
|
88 |
*
|
|
89 |
* @serial
|
|
90 |
*/
|
|
91 |
private final long leastSigBits;
|
|
92 |
|
|
93 |
/*
|
|
94 |
* The version number associated with this UUID. Computed on demand.
|
|
95 |
*/
|
|
96 |
private transient int version = -1;
|
|
97 |
|
|
98 |
/*
|
|
99 |
* The variant number associated with this UUID. Computed on demand.
|
|
100 |
*/
|
|
101 |
private transient int variant = -1;
|
|
102 |
|
|
103 |
/*
|
|
104 |
* The timestamp associated with this UUID. Computed on demand.
|
|
105 |
*/
|
|
106 |
private transient volatile long timestamp = -1;
|
|
107 |
|
|
108 |
/*
|
|
109 |
* The clock sequence associated with this UUID. Computed on demand.
|
|
110 |
*/
|
|
111 |
private transient int sequence = -1;
|
|
112 |
|
|
113 |
/*
|
|
114 |
* The node number associated with this UUID. Computed on demand.
|
|
115 |
*/
|
|
116 |
private transient long node = -1;
|
|
117 |
|
|
118 |
/*
|
|
119 |
* The hashcode of this UUID. Computed on demand.
|
|
120 |
*/
|
|
121 |
private transient int hashCode = -1;
|
|
122 |
|
|
123 |
/*
|
|
124 |
* The random number generator used by this class to create random
|
|
125 |
* based UUIDs.
|
|
126 |
*/
|
|
127 |
private static volatile SecureRandom numberGenerator = null;
|
|
128 |
|
|
129 |
// Constructors and Factories
|
|
130 |
|
|
131 |
/*
|
|
132 |
* Private constructor which uses a byte array to construct the new UUID.
|
|
133 |
*/
|
|
134 |
private UUID(byte[] data) {
|
|
135 |
long msb = 0;
|
|
136 |
long lsb = 0;
|
|
137 |
assert data.length == 16;
|
|
138 |
for (int i=0; i<8; i++)
|
|
139 |
msb = (msb << 8) | (data[i] & 0xff);
|
|
140 |
for (int i=8; i<16; i++)
|
|
141 |
lsb = (lsb << 8) | (data[i] & 0xff);
|
|
142 |
this.mostSigBits = msb;
|
|
143 |
this.leastSigBits = lsb;
|
|
144 |
}
|
|
145 |
|
|
146 |
/**
|
|
147 |
* Constructs a new {@code UUID} using the specified data. {@code
|
|
148 |
* mostSigBits} is used for the most significant 64 bits of the {@code
|
|
149 |
* UUID} and {@code leastSigBits} becomes the least significant 64 bits of
|
|
150 |
* the {@code UUID}.
|
|
151 |
*
|
|
152 |
* @param mostSigBits
|
|
153 |
* The most significant bits of the {@code UUID}
|
|
154 |
*
|
|
155 |
* @param leastSigBits
|
|
156 |
* The least significant bits of the {@code UUID}
|
|
157 |
*/
|
|
158 |
public UUID(long mostSigBits, long leastSigBits) {
|
|
159 |
this.mostSigBits = mostSigBits;
|
|
160 |
this.leastSigBits = leastSigBits;
|
|
161 |
}
|
|
162 |
|
|
163 |
/**
|
|
164 |
* Static factory to retrieve a type 4 (pseudo randomly generated) UUID.
|
|
165 |
*
|
|
166 |
* The {@code UUID} is generated using a cryptographically strong pseudo
|
|
167 |
* random number generator.
|
|
168 |
*
|
|
169 |
* @return A randomly generated {@code UUID}
|
|
170 |
*/
|
|
171 |
public static UUID randomUUID() {
|
|
172 |
SecureRandom ng = numberGenerator;
|
|
173 |
if (ng == null) {
|
|
174 |
numberGenerator = ng = new SecureRandom();
|
|
175 |
}
|
|
176 |
|
|
177 |
byte[] randomBytes = new byte[16];
|
|
178 |
ng.nextBytes(randomBytes);
|
|
179 |
randomBytes[6] &= 0x0f; /* clear version */
|
|
180 |
randomBytes[6] |= 0x40; /* set to version 4 */
|
|
181 |
randomBytes[8] &= 0x3f; /* clear variant */
|
|
182 |
randomBytes[8] |= 0x80; /* set to IETF variant */
|
|
183 |
return new UUID(randomBytes);
|
|
184 |
}
|
|
185 |
|
|
186 |
/**
|
|
187 |
* Static factory to retrieve a type 3 (name based) {@code UUID} based on
|
|
188 |
* the specified byte array.
|
|
189 |
*
|
|
190 |
* @param name
|
|
191 |
* A byte array to be used to construct a {@code UUID}
|
|
192 |
*
|
|
193 |
* @return A {@code UUID} generated from the specified array
|
|
194 |
*/
|
|
195 |
public static UUID nameUUIDFromBytes(byte[] name) {
|
|
196 |
MessageDigest md;
|
|
197 |
try {
|
|
198 |
md = MessageDigest.getInstance("MD5");
|
|
199 |
} catch (NoSuchAlgorithmException nsae) {
|
|
200 |
throw new InternalError("MD5 not supported");
|
|
201 |
}
|
|
202 |
byte[] md5Bytes = md.digest(name);
|
|
203 |
md5Bytes[6] &= 0x0f; /* clear version */
|
|
204 |
md5Bytes[6] |= 0x30; /* set to version 3 */
|
|
205 |
md5Bytes[8] &= 0x3f; /* clear variant */
|
|
206 |
md5Bytes[8] |= 0x80; /* set to IETF variant */
|
|
207 |
return new UUID(md5Bytes);
|
|
208 |
}
|
|
209 |
|
|
210 |
/**
|
|
211 |
* Creates a {@code UUID} from the string standard representation as
|
|
212 |
* described in the {@link #toString} method.
|
|
213 |
*
|
|
214 |
* @param name
|
|
215 |
* A string that specifies a {@code UUID}
|
|
216 |
*
|
|
217 |
* @return A {@code UUID} with the specified value
|
|
218 |
*
|
|
219 |
* @throws IllegalArgumentException
|
|
220 |
* If name does not conform to the string representation as
|
|
221 |
* described in {@link #toString}
|
|
222 |
*
|
|
223 |
*/
|
|
224 |
public static UUID fromString(String name) {
|
|
225 |
String[] components = name.split("-");
|
|
226 |
if (components.length != 5)
|
|
227 |
throw new IllegalArgumentException("Invalid UUID string: "+name);
|
|
228 |
for (int i=0; i<5; i++)
|
|
229 |
components[i] = "0x"+components[i];
|
|
230 |
|
|
231 |
long mostSigBits = Long.decode(components[0]).longValue();
|
|
232 |
mostSigBits <<= 16;
|
|
233 |
mostSigBits |= Long.decode(components[1]).longValue();
|
|
234 |
mostSigBits <<= 16;
|
|
235 |
mostSigBits |= Long.decode(components[2]).longValue();
|
|
236 |
|
|
237 |
long leastSigBits = Long.decode(components[3]).longValue();
|
|
238 |
leastSigBits <<= 48;
|
|
239 |
leastSigBits |= Long.decode(components[4]).longValue();
|
|
240 |
|
|
241 |
return new UUID(mostSigBits, leastSigBits);
|
|
242 |
}
|
|
243 |
|
|
244 |
// Field Accessor Methods
|
|
245 |
|
|
246 |
/**
|
|
247 |
* Returns the least significant 64 bits of this UUID's 128 bit value.
|
|
248 |
*
|
|
249 |
* @return The least significant 64 bits of this UUID's 128 bit value
|
|
250 |
*/
|
|
251 |
public long getLeastSignificantBits() {
|
|
252 |
return leastSigBits;
|
|
253 |
}
|
|
254 |
|
|
255 |
/**
|
|
256 |
* Returns the most significant 64 bits of this UUID's 128 bit value.
|
|
257 |
*
|
|
258 |
* @return The most significant 64 bits of this UUID's 128 bit value
|
|
259 |
*/
|
|
260 |
public long getMostSignificantBits() {
|
|
261 |
return mostSigBits;
|
|
262 |
}
|
|
263 |
|
|
264 |
/**
|
|
265 |
* The version number associated with this {@code UUID}. The version
|
|
266 |
* number describes how this {@code UUID} was generated.
|
|
267 |
*
|
|
268 |
* The version number has the following meaning:
|
|
269 |
* <p><ul>
|
|
270 |
* <li>1 Time-based UUID
|
|
271 |
* <li>2 DCE security UUID
|
|
272 |
* <li>3 Name-based UUID
|
|
273 |
* <li>4 Randomly generated UUID
|
|
274 |
* </ul>
|
|
275 |
*
|
|
276 |
* @return The version number of this {@code UUID}
|
|
277 |
*/
|
|
278 |
public int version() {
|
|
279 |
if (version < 0) {
|
|
280 |
// Version is bits masked by 0x000000000000F000 in MS long
|
|
281 |
version = (int)((mostSigBits >> 12) & 0x0f);
|
|
282 |
}
|
|
283 |
return version;
|
|
284 |
}
|
|
285 |
|
|
286 |
/**
|
|
287 |
* The variant number associated with this {@code UUID}. The variant
|
|
288 |
* number describes the layout of the {@code UUID}.
|
|
289 |
*
|
|
290 |
* The variant number has the following meaning:
|
|
291 |
* <p><ul>
|
|
292 |
* <li>0 Reserved for NCS backward compatibility
|
|
293 |
* <li>2 The Leach-Salz variant (used by this class)
|
|
294 |
* <li>6 Reserved, Microsoft Corporation backward compatibility
|
|
295 |
* <li>7 Reserved for future definition
|
|
296 |
* </ul>
|
|
297 |
*
|
|
298 |
* @return The variant number of this {@code UUID}
|
|
299 |
*/
|
|
300 |
public int variant() {
|
|
301 |
if (variant < 0) {
|
|
302 |
// This field is composed of a varying number of bits
|
|
303 |
if ((leastSigBits >>> 63) == 0) {
|
|
304 |
variant = 0;
|
|
305 |
} else if ((leastSigBits >>> 62) == 2) {
|
|
306 |
variant = 2;
|
|
307 |
} else {
|
|
308 |
variant = (int)(leastSigBits >>> 61);
|
|
309 |
}
|
|
310 |
}
|
|
311 |
return variant;
|
|
312 |
}
|
|
313 |
|
|
314 |
/**
|
|
315 |
* The timestamp value associated with this UUID.
|
|
316 |
*
|
|
317 |
* <p> The 60 bit timestamp value is constructed from the time_low,
|
|
318 |
* time_mid, and time_hi fields of this {@code UUID}. The resulting
|
|
319 |
* timestamp is measured in 100-nanosecond units since midnight,
|
|
320 |
* October 15, 1582 UTC.
|
|
321 |
*
|
|
322 |
* <p> The timestamp value is only meaningful in a time-based UUID, which
|
|
323 |
* has version type 1. If this {@code UUID} is not a time-based UUID then
|
|
324 |
* this method throws UnsupportedOperationException.
|
|
325 |
*
|
|
326 |
* @throws UnsupportedOperationException
|
|
327 |
* If this UUID is not a version 1 UUID
|
|
328 |
*/
|
|
329 |
public long timestamp() {
|
|
330 |
if (version() != 1) {
|
|
331 |
throw new UnsupportedOperationException("Not a time-based UUID");
|
|
332 |
}
|
|
333 |
long result = timestamp;
|
|
334 |
if (result < 0) {
|
|
335 |
result = (mostSigBits & 0x0000000000000FFFL) << 48;
|
|
336 |
result |= ((mostSigBits >> 16) & 0xFFFFL) << 32;
|
|
337 |
result |= mostSigBits >>> 32;
|
|
338 |
timestamp = result;
|
|
339 |
}
|
|
340 |
return result;
|
|
341 |
}
|
|
342 |
|
|
343 |
/**
|
|
344 |
* The clock sequence value associated with this UUID.
|
|
345 |
*
|
|
346 |
* <p> The 14 bit clock sequence value is constructed from the clock
|
|
347 |
* sequence field of this UUID. The clock sequence field is used to
|
|
348 |
* guarantee temporal uniqueness in a time-based UUID.
|
|
349 |
*
|
|
350 |
* <p> The {@code clockSequence} value is only meaningful in a time-based
|
|
351 |
* UUID, which has version type 1. If this UUID is not a time-based UUID
|
|
352 |
* then this method throws UnsupportedOperationException.
|
|
353 |
*
|
|
354 |
* @return The clock sequence of this {@code UUID}
|
|
355 |
*
|
|
356 |
* @throws UnsupportedOperationException
|
|
357 |
* If this UUID is not a version 1 UUID
|
|
358 |
*/
|
|
359 |
public int clockSequence() {
|
|
360 |
if (version() != 1) {
|
|
361 |
throw new UnsupportedOperationException("Not a time-based UUID");
|
|
362 |
}
|
|
363 |
if (sequence < 0) {
|
|
364 |
sequence = (int)((leastSigBits & 0x3FFF000000000000L) >>> 48);
|
|
365 |
}
|
|
366 |
return sequence;
|
|
367 |
}
|
|
368 |
|
|
369 |
/**
|
|
370 |
* The node value associated with this UUID.
|
|
371 |
*
|
|
372 |
* <p> The 48 bit node value is constructed from the node field of this
|
|
373 |
* UUID. This field is intended to hold the IEEE 802 address of the machine
|
|
374 |
* that generated this UUID to guarantee spatial uniqueness.
|
|
375 |
*
|
|
376 |
* <p> The node value is only meaningful in a time-based UUID, which has
|
|
377 |
* version type 1. If this UUID is not a time-based UUID then this method
|
|
378 |
* throws UnsupportedOperationException.
|
|
379 |
*
|
|
380 |
* @return The node value of this {@code UUID}
|
|
381 |
*
|
|
382 |
* @throws UnsupportedOperationException
|
|
383 |
* If this UUID is not a version 1 UUID
|
|
384 |
*/
|
|
385 |
public long node() {
|
|
386 |
if (version() != 1) {
|
|
387 |
throw new UnsupportedOperationException("Not a time-based UUID");
|
|
388 |
}
|
|
389 |
if (node < 0) {
|
|
390 |
node = leastSigBits & 0x0000FFFFFFFFFFFFL;
|
|
391 |
}
|
|
392 |
return node;
|
|
393 |
}
|
|
394 |
|
|
395 |
// Object Inherited Methods
|
|
396 |
|
|
397 |
/**
|
|
398 |
* Returns a {@code String} object representing this {@code UUID}.
|
|
399 |
*
|
|
400 |
* <p> The UUID string representation is as described by this BNF:
|
|
401 |
* <blockquote><pre>
|
|
402 |
* {@code
|
|
403 |
* UUID = <time_low> "-" <time_mid> "-"
|
|
404 |
* <time_high_and_version> "-"
|
|
405 |
* <variant_and_sequence> "-"
|
|
406 |
* <node>
|
|
407 |
* time_low = 4*<hexOctet>
|
|
408 |
* time_mid = 2*<hexOctet>
|
|
409 |
* time_high_and_version = 2*<hexOctet>
|
|
410 |
* variant_and_sequence = 2*<hexOctet>
|
|
411 |
* node = 6*<hexOctet>
|
|
412 |
* hexOctet = <hexDigit><hexDigit>
|
|
413 |
* hexDigit =
|
|
414 |
* "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
|
|
415 |
* | "a" | "b" | "c" | "d" | "e" | "f"
|
|
416 |
* | "A" | "B" | "C" | "D" | "E" | "F"
|
|
417 |
* }</pre></blockquote>
|
|
418 |
*
|
|
419 |
* @return A string representation of this {@code UUID}
|
|
420 |
*/
|
|
421 |
public String toString() {
|
|
422 |
return (digits(mostSigBits >> 32, 8) + "-" +
|
|
423 |
digits(mostSigBits >> 16, 4) + "-" +
|
|
424 |
digits(mostSigBits, 4) + "-" +
|
|
425 |
digits(leastSigBits >> 48, 4) + "-" +
|
|
426 |
digits(leastSigBits, 12));
|
|
427 |
}
|
|
428 |
|
|
429 |
/** Returns val represented by the specified number of hex digits. */
|
|
430 |
private static String digits(long val, int digits) {
|
|
431 |
long hi = 1L << (digits * 4);
|
|
432 |
return Long.toHexString(hi | (val & (hi - 1))).substring(1);
|
|
433 |
}
|
|
434 |
|
|
435 |
/**
|
|
436 |
* Returns a hash code for this {@code UUID}.
|
|
437 |
*
|
|
438 |
* @return A hash code value for this {@code UUID}
|
|
439 |
*/
|
|
440 |
public int hashCode() {
|
|
441 |
if (hashCode == -1) {
|
|
442 |
hashCode = (int)((mostSigBits >> 32) ^
|
|
443 |
mostSigBits ^
|
|
444 |
(leastSigBits >> 32) ^
|
|
445 |
leastSigBits);
|
|
446 |
}
|
|
447 |
return hashCode;
|
|
448 |
}
|
|
449 |
|
|
450 |
/**
|
|
451 |
* Compares this object to the specified object. The result is {@code
|
|
452 |
* true} if and only if the argument is not {@code null}, is a {@code UUID}
|
|
453 |
* object, has the same variant, and contains the same value, bit for bit,
|
|
454 |
* as this {@code UUID}.
|
|
455 |
*
|
|
456 |
* @param obj
|
|
457 |
* The object to be compared
|
|
458 |
*
|
|
459 |
* @return {@code true} if the objects are the same; {@code false}
|
|
460 |
* otherwise
|
|
461 |
*/
|
|
462 |
public boolean equals(Object obj) {
|
|
463 |
if (!(obj instanceof UUID))
|
|
464 |
return false;
|
|
465 |
if (((UUID)obj).variant() != this.variant())
|
|
466 |
return false;
|
|
467 |
UUID id = (UUID)obj;
|
|
468 |
return (mostSigBits == id.mostSigBits &&
|
|
469 |
leastSigBits == id.leastSigBits);
|
|
470 |
}
|
|
471 |
|
|
472 |
// Comparison Operations
|
|
473 |
|
|
474 |
/**
|
|
475 |
* Compares this UUID with the specified UUID.
|
|
476 |
*
|
|
477 |
* <p> The first of two UUIDs is greater than the second if the most
|
|
478 |
* significant field in which the UUIDs differ is greater for the first
|
|
479 |
* UUID.
|
|
480 |
*
|
|
481 |
* @param val
|
|
482 |
* {@code UUID} to which this {@code UUID} is to be compared
|
|
483 |
*
|
|
484 |
* @return -1, 0 or 1 as this {@code UUID} is less than, equal to, or
|
|
485 |
* greater than {@code val}
|
|
486 |
*
|
|
487 |
*/
|
|
488 |
public int compareTo(UUID val) {
|
|
489 |
// The ordering is intentionally set up so that the UUIDs
|
|
490 |
// can simply be numerically compared as two numbers
|
|
491 |
return (this.mostSigBits < val.mostSigBits ? -1 :
|
|
492 |
(this.mostSigBits > val.mostSigBits ? 1 :
|
|
493 |
(this.leastSigBits < val.leastSigBits ? -1 :
|
|
494 |
(this.leastSigBits > val.leastSigBits ? 1 :
|
|
495 |
0))));
|
|
496 |
}
|
|
497 |
|
|
498 |
/**
|
|
499 |
* Reconstitute the {@code UUID} instance from a stream (that is,
|
|
500 |
* deserialize it). This is necessary to set the transient fields to their
|
|
501 |
* correct uninitialized value so they will be recomputed on demand.
|
|
502 |
*/
|
|
503 |
private void readObject(java.io.ObjectInputStream in)
|
|
504 |
throws java.io.IOException, ClassNotFoundException {
|
|
505 |
|
|
506 |
in.defaultReadObject();
|
|
507 |
|
|
508 |
// Set "cached computation" fields to their initial values
|
|
509 |
version = -1;
|
|
510 |
variant = -1;
|
|
511 |
timestamp = -1;
|
|
512 |
sequence = -1;
|
|
513 |
node = -1;
|
|
514 |
hashCode = -1;
|
|
515 |
}
|
|
516 |
}
|