@Test public void testCompareDatabaseVersionHeaderEqual() { DatabaseVersionHeaderComparator databaseVersionHeaderComparator = new DatabaseVersionHeaderComparator(true); assertThat(databaseVersionHeaderComparator.compare(dbvh1, dbvh2), is(0)); }
@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);  }