| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
REVISION  | 
static java.lang.String | 
STAMP_SEPARATOR  | 
| Constructor and Description | 
|---|
Stamp(java.lang.String str)
Create a new stamp from a string having the following format:
 urid[STAMP_SEPARATOR]time 
 | 
Stamp(java.lang.String urid,
     long time)
Create a new stamp from an URID and a logical time 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(Stamp stamp)
Compares this stamp with the specified stamp for order. 
 | 
boolean | 
equals(java.lang.Object obj)  | 
long | 
getTime()
Get the value of time. 
 | 
java.lang.String | 
getUrid()
Get the value of urid. 
 | 
int | 
hashCode()  | 
static Stamp | 
max(Stamp s1,
   Stamp s2)
Return the greater of two stamps 
 | 
static Stamp | 
min(Stamp s1,
   Stamp s2)
Return the smaller of two stamps 
 | 
void | 
setTime(long time)
Set the value of time. 
 | 
void | 
setUrid(java.lang.String urid)
Set the value of urid. 
 | 
java.lang.String | 
toString()  | 
public static final java.lang.String REVISION
public static final java.lang.String STAMP_SEPARATOR
public Stamp(java.lang.String urid,
             long time)
public Stamp(java.lang.String str)
public java.lang.String getUrid()
public void setUrid(java.lang.String urid)
urid - Value to assign to urid.public long getTime()
public void setTime(long time)
time - Value to assign to time.public int compareTo(Stamp stamp)
compareTo in interface java.lang.Comparable<Stamp>stamp - the Stamp to be compared.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static Stamp min(Stamp s1, Stamp s2)
s1 - a stamps2 - a stamppublic static Stamp max(Stamp s1, Stamp s2)
s1 - a stamps2 - a stamppublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2001-2018 Jalios SA. All Rights Reserved.