public final class LongUuid extends Object
Constructor and Description |
---|
LongUuid()
Constructor that generates a new UUID using the current process id and
MAC address, timestamp and a counter
|
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() |
static long |
getLongUuid() |
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 static final long getLongUuid()
public final byte[] getBytes()
public final int getProcessId()
public final long getTimestamp()
public final long getLong()
Copyright © 2009–2022 Waarp. All rights reserved.