/** * Returns a 36-character string of five fields separated by hyphens, with each field * represented in lowercase hexadecimal with the same number of digits as in the field. The * order of fields is: <code>time_low</code>, <code>time_mid</code>, <code>version</code> and * <code>time_hi</code> treated as a single field, <code>variant</code> and * <code>clock_seq</code> treated as a single field, and <code>node</code>. */ public String toString() { return (digits(mostSig >> 32, 8) + "-" + digits(mostSig >> 16, 4) + "-" + digits(mostSig, 4) + "-" + digits(leastSig >> 48, 4) + "-" + digits(leastSig, 12)); }
/** * Returns a 36-character string of five fields separated by hyphens, with * each field represented in lowercase hexadecimal with the same number of * digits as in the field. The order of fields is: <code>time_low</code>, * <code>time_mid</code>, <code>version</code> and <code>time_hi</code> * treated as a single field, <code>variant</code> and * <code>clock_seq</code> treated as a single field, and <code>node</code>. */ public String toString() { return (digits(mostSig >> 32, 8) + "-" + digits(mostSig >> 16, 4) + "-" + digits(mostSig, 4) + "-" + digits(leastSig >> 48, 4) + "-" + digits(leastSig, 12)); }