Modifier and Type | Class and Description |
---|---|
static class |
JenaUUID.UUIDFormatException |
Modifier and Type | Method and Description |
---|---|
String |
asString()
Format as a string - no URI scheme
|
String |
asURI()
Format as a URI - that is uuid:ABCD
|
String |
asURN()
Format as a URN - that is urn:uuid:ABCD
|
UUID |
asUUID()
Return a
UUID for this Jena-generated UUID |
boolean |
equals(Object other) |
static JenaUUID |
generate()
Create a UUID
|
static UUIDFactory |
getFactory() |
abstract long |
getLeastSignificantBits() |
abstract long |
getMostSignificantBits() |
abstract int |
getVariant() |
abstract int |
getVersion() |
int |
hashCode() |
boolean |
isNil() |
static JenaUUID |
nil()
The nil UUID
|
static JenaUUID |
parse(String s)
Recreate a UUID from string
|
static void |
reset() |
static void |
setFactory(UUIDFactory factory) |
static String |
strNil() |
String |
toString() |
static String |
toString(JenaUUID uuid) |
static String |
toString(long mostSignificantBits,
long leastSignificantBits)
Format using two longs - assumed valid for an UUID of some kind
|
public abstract int getVersion()
public abstract int getVariant()
public abstract long getMostSignificantBits()
public abstract long getLeastSignificantBits()
public String asString()
public String asURI()
public String asURN()
public static void setFactory(UUIDFactory factory)
public static UUIDFactory getFactory()
public static JenaUUID generate()
public static void reset()
public static JenaUUID nil()
public static String strNil()
public boolean isNil()
public static String toString(long mostSignificantBits, long leastSignificantBits)
Licenced under the Apache License, Version 2.0