if (vectorClockRangeFrom == null) {
greaterOrEqualToVersionFrom = true;
}
else {
VectorClockComparison comparison = VectorClock.compare(vectorClockRangeFrom, vectorClock);
if (comparison == VectorClockComparison.EQUAL || comparison == VectorClockComparison.SMALLER) {
greaterOrEqualToVersionFrom = true;
}
}
// Determine if: databaseVersion < versionTo
boolean lowerOrEqualToVersionTo = false;
if (vectorClockRangeTo == null) {
lowerOrEqualToVersionTo = true;
}
else {
VectorClockComparison comparison = VectorClock.compare(vectorClock, vectorClockRangeTo);
if (comparison == VectorClockComparison.EQUAL || comparison == VectorClockComparison.SMALLER) {
lowerOrEqualToVersionTo = true;
}
}