Exemple #1
0
 public boolean equals(Timestamp ts) {
   return ts != null && getTime() == ts.getTime() && getNanos() == ts.getNanos();
 }
Exemple #2
0
 public boolean before(Timestamp ts) {
   return (getTime() < ts.getTime()) || (getTime() == ts.getTime() && getNanos() < ts.getNanos());
 }
Exemple #3
0
 public int compareTo(Timestamp o) {
   int sign = Long.signum(getTime() - o.getTime());
   return sign == 0 ? getNanos() - o.getNanos() : sign;
 }
Exemple #4
0
 public boolean after(Timestamp ts) {
   return (getTime() > ts.getTime()) || (getTime() == ts.getTime() && getNanos() > ts.getNanos());
 }