@Test public void testCompareDatabaseVersionHeaderLarger() { DatabaseVersionHeaderComparator databaseVersionHeaderComparator = new DatabaseVersionHeaderComparator(false); vc1.setClock("A", 3); vc1.setClock("B", 7); vc2.setClock("A", 1); vc2.setClock("B", 7); assertThat(databaseVersionHeaderComparator.compare(dbvh1, dbvh2), is(1)); }
@Override public int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2) { return compareByVectorClock(dbvh1, dbvh2); }
DatabaseVersionHeaderComparator implements Comparator<DatabaseVersionHeader> { @Override public int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2) { return compareByVectorClock(dbvh1, dbvh2); } }
DatabaseVersionHeaderComparator implements Comparator<DatabaseVersionHeader> { @Override public int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2) { return compareByVectorClock(dbvh1, dbvh2); } DatabaseVersionHeaderComparator(boolean considerTime); }
DatabaseVersionHeaderComparator implements Comparator<DatabaseVersionHeader> { @Override public int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2) { return compareByVectorClock(dbvh1, dbvh2); } DatabaseVersionHeaderComparator(boolean considerTime); @Override int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2); }
DatabaseVersionHeaderComparator implements Comparator<DatabaseVersionHeader> { @Override public int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2) { return compareByVectorClock(dbvh1, dbvh2); } DatabaseVersionHeaderComparator(boolean considerTime); @Override int compare(DatabaseVersionHeader dbvh1, DatabaseVersionHeader dbvh2);  }