text: public int compareTo(String version) {final String[] parts = version.split(":");final long indexGen = Long.parseLong(parts[0], RADIX);final long taxoGen = Long.parseLong(parts[1], RADIX);final long indexCommitGen = indexCommit.getGeneration();final long taxoCommitGen = taxoCommit.getGeneration();if (indexCommitGen < indexGen) {return -1;} else if (indexCommitGen > indexGen) {return 1;} else {return taxoCommitGen < taxoGen ? -1 : (taxoCommitGen > taxoGen ? 1 : 0);}}