Lines Matching defs:csn1
305 * number if {@code csn1} is older than {@code csn2}, zero if they have the
306 * same age, or a positive number if {@code csn1} is newer than {@code csn2}.
308 * @param csn1
312 * @return A negative number if {@code csn1} is older than {@code csn2}, zero
313 * if they have the same age, or a positive number if {@code csn1} is
316 public static int compare(CSN csn1, CSN csn2)
318 if (csn1 == null)
326 else if (csn1.timeStamp != csn2.timeStamp)
328 return csn1.timeStamp < csn2.timeStamp ? -1 : 1;
330 else if (csn1.seqnum != csn2.seqnum)
332 return csn1.seqnum - csn2.seqnum;
336 return csn1.serverId - csn2.serverId;
345 * @param csn1
351 public static int diffSeqNum(CSN csn1, CSN csn2)
353 if (csn1 == null)
359 return csn1.getSeqnum();
361 if (csn2.isNewerThanOrEqualTo(csn1))
366 int seqnum1 = csn1.getSeqnum();
367 long time1 = csn1.getTime();