public static int compare(UUID uuid1,UUID uuid2){
  int timeResult=Longs.compare(uuid1.timestamp(),uuid2.timestamp());
  if (timeResult != 0) {
    return timeResult;
  }
  return uuid1.compareTo(uuid2);
}

public static int compare ( UUID uuid1 , UUID uuid2 ) { int timeResult = Longs . compare ( uuid1 . timestamp ( ) , uuid2 . timestamp ( ) ) ; if ( timeResult != 0 ) { return timeResult ; } return uuid1 . compareTo ( uuid2 ) ; }
compare two time uuids deterministically , first by their embedded timestamp , next by their node - specific sequence number , finally breaking ties using their embedded node identifier . \
