|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arjuna.ats.arjuna.common.Uid
public class Uid
Implements a unique identity class. Since 4.9 each instance is immutable.
Field Summary | |
---|---|
protected long[] |
hostAddr
|
protected int |
other
|
protected int |
process
|
protected int |
sec
|
Constructor Summary | |
---|---|
Uid()
Create a new instance. |
|
Uid(byte[] byteForm)
|
|
Uid(long[] addr,
int processId,
int time,
int incr)
|
|
Uid(String uidString)
Create Uid from string representation. |
|
Uid(String uidString,
boolean errsOk)
Create Uid from string representation. |
|
Uid(Uid copyFrom)
Create a copy of the specified identifier. |
Method Summary | |
---|---|
Object |
clone()
Create a copy of this instance. |
boolean |
equals(Object o)
Override Object.equals |
boolean |
equals(Uid u)
|
String |
fileStringForm()
|
byte[] |
getBytes()
Get the byte representation of the Uid. |
String |
getHexPid()
|
boolean |
greaterThan(Uid u)
|
int |
hashCode()
Override Object.hashCode. |
static Uid |
lastResourceUid()
Return a last resource Uid (0:0:0:0:1) |
boolean |
lessThan(Uid u)
|
static Uid |
maxUid()
Return the maximum Uid (7fffffff:7fffffff:7fffffff:7fffffff:7fffffff) |
static Uid |
minUid()
Return the minimum Uid (-80000000:-80000000:-80000000:-80000000:-80000000) |
boolean |
notEquals(Uid u)
|
static Uid |
nullUid()
Return a null Uid (0:0:0:0:0) |
void |
print(PrintStream strm)
Print a human-readable form of the Uid. |
String |
stringForm()
|
String |
toString()
Same as stringForm() |
boolean |
valid()
Is the Uid valid? |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected volatile long[] hostAddr
protected volatile int process
protected volatile int sec
protected volatile int other
Constructor Detail |
---|
public Uid()
public Uid(Uid copyFrom)
public Uid(byte[] byteForm)
public Uid(String uidString)
public Uid(String uidString, boolean errsOk)
public Uid(long[] addr, int processId, int time, int incr)
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public void print(PrintStream strm)
public String stringForm()
public String fileStringForm()
public byte[] getBytes()
public String toString()
toString
in class Object
public String getHexPid()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean equals(Object o)
equals
in class Object
public boolean equals(Uid u)
public boolean notEquals(Uid u)
public boolean lessThan(Uid u)
public boolean greaterThan(Uid u)
public final boolean valid()
public static final Uid nullUid()
public static final Uid lastResourceUid()
public static final Uid maxUid()
public static final Uid minUid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |