org.hornetq.utils
public final class UUID extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
INDEX_CLOCK_HI |
static byte |
INDEX_CLOCK_LO |
static byte |
INDEX_CLOCK_MID |
static byte |
INDEX_CLOCK_SEQUENCE |
static byte |
INDEX_TYPE |
static byte |
INDEX_VARIATION |
static String |
NAMESPACE_DNS |
static String |
NAMESPACE_OID |
static String |
NAMESPACE_URL |
static String |
NAMESPACE_X500 |
static byte |
TYPE_DCE |
static byte |
TYPE_NAME_BASED |
static byte |
TYPE_NULL |
static byte |
TYPE_RANDOM_BASED |
static byte |
TYPE_TIME_BASED |
Constructor and Description |
---|
UUID(int type,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBytes() |
boolean |
equals(Object o)
Checking equality of UUIDs is easy; just compare the 128-bit number.
|
int |
hashCode() |
static byte[] |
stringToBytes(String uuid)
Creates a 128bit number from the String representation of
UUID . |
String |
toString() |
public static final byte INDEX_CLOCK_HI
public static final byte INDEX_CLOCK_MID
public static final byte INDEX_CLOCK_LO
public static final byte INDEX_TYPE
public static final byte INDEX_CLOCK_SEQUENCE
public static final byte INDEX_VARIATION
public static final byte TYPE_NULL
public static final byte TYPE_TIME_BASED
public static final byte TYPE_DCE
public static final byte TYPE_NAME_BASED
public static final byte TYPE_RANDOM_BASED
public static final String NAMESPACE_DNS
public static final String NAMESPACE_URL
public static final String NAMESPACE_OID
public static final String NAMESPACE_X500
public UUID(int type, byte[] data)
type
- UUID typedata
- 16 byte UUID contentsCopyright © 2016 JBoss, a division of Red Hat. All Rights Reserved.