Code examples for UUID

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
70:	ByteBuffer sameAsFirst = ByteBuffer.wrap(UUIDGen.decompose(UUIDGen.getUUID(first))); 
Full Snippet Info
8
CodeRank
70:	testCompare(r1, r1, 0); 
-
173:	UUID b = new UUID(a.getMostSignificantBits(), 
174:	a.getLeastSignificantBits()); 
Full Snippet Info
8
CodeRank
41:	output.writeLong(uuid.getMostSignificantBits()); 
42:	output.writeLong(uuid.getLeastSignificantBits()); 
Full Snippet Info
8
CodeRank
89:	UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode()); 
90:	deviceId = deviceUuid.toString(); 
Full Snippet Info
7
CodeRank
230:	if (uuid.version() != 1) 
231:	throw new IllegalArgumentException("incompatible with uuid version: "+uuid.version()); 
232:	return (uuid.timestamp() / 10000) + START_EPOCH; 
Full Snippet Info
7
CodeRank
150:	return new VersionedValue(newVersion.toString()); 
Full Snippet Info
7
CodeRank
51:	if (o2.remaining() == 0) 
-
101:	if (uuid.version() != 1) 
-
105:	return uuid.toString(); 
Full Snippet Info
6
CodeRank
18:	return uuid.toString(); 
Full Snippet Info
6
CodeRank
32:	UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L); 
33:	assertEquals(2, uuid.variant()); 
34:	assertEquals(1, uuid.version()); 
35:	assertEquals(0x1d07decf81d4faeL, uuid.timestamp()); 
36:	assertEquals(130742845922168750L, uuid.timestamp()); 
37:	assertEquals(0x2765, uuid.clockSequence()); 
38:	assertEquals(0xA0C91E6BF6L, uuid.node()); 
Full Snippet Info
7
CodeRank
32:	UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L); 
33:	assertEquals(2, uuid.variant()); 
34:	assertEquals(1, uuid.version()); 
35:	assertEquals(0x1d07decf81d4faeL, uuid.timestamp()); 
36:	assertEquals(130742845922168750L, uuid.timestamp()); 
37:	assertEquals(0x2765, uuid.clockSequence()); 
38:	assertEquals(0xA0C91E6BF6L, uuid.node()); 
Full Snippet Info
6
CodeRank
52:	IsoTypeWriter.writeUInt64(byteBuffer, systemId.getMostSignificantBits()); 
53:	IsoTypeWriter.writeUInt64(byteBuffer, systemId.getLeastSignificantBits()); 
Full Snippet Info
6
CodeRank
47:	return (value != null ? value.toString() : ""); 
Full Snippet Info
6
CodeRank
52:	} 
-
95:	 
Full Snippet Info
6
CodeRank
42:	nbtTag.setLong("most", uuid.getMostSignificantBits()); 
43:	nbtTag.setLong("least", uuid.getLeastSignificantBits()); 
Full Snippet Info
6
CodeRank
42:	mutator.addInsertion("zznate", "Standard1", HFactory.createColumn("uuid", timeUUID, StringSerializer.get(), UUIDSerializer.get())); 
-
52:	assertEquals("nate@datastax.com",columnFamily.getString("email")); 
Full Snippet Info
6
CodeRank
191:	super(null, new UUID(0, id.incrementAndGet()), -1L); 
Full Snippet Info
6
CodeRank
32:	UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L); 
33:	assertEquals(2, uuid.variant()); 
34:	assertEquals(1, uuid.version()); 
35:	assertEquals(0x1d07decf81d4faeL, uuid.timestamp()); 
36:	assertEquals(130742845922168750L, uuid.timestamp()); 
37:	assertEquals(0x2765, uuid.clockSequence()); 
38:	assertEquals(0xA0C91E6BF6L, uuid.node()); 
Full Snippet Info
6
CodeRank