public final class LongUuid extends Object
Constructor and Description |
---|
LongUuid()
Constructor that generates a new UUID using the current process id, MAC
address, and timestamp
|
LongUuid(byte[] bytes)
Constructor that takes a byte array as this UUID's content
|
LongUuid(long value) |
LongUuid(String idsource) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getBytes()
copy the uuid of this UUID, so that it can't be changed, and return it
|
long |
getLong() |
int |
getProcessId()
extract process id from raw UUID bytes and return as int
|
long |
getTimestamp()
extract timestamp from raw UUID bytes and return as int
|
int |
hashCode() |
String |
toString() |
public LongUuid()
public LongUuid(byte[] bytes)
bytes
- UUID contentpublic LongUuid(long value)
public LongUuid(String idsource)
public byte[] getBytes()
public int getProcessId()
public long getTimestamp()
public long getLong()
Copyright © 2009–2020 Waarp. All rights reserved.