@Override public boolean isSucceeding(final IContinuousLongSet set) { final IContinuousLongBound lowerBound = getLowerBound(); final IContinuousLongBound otherUpperBound = set.getUpperBound(); if (lowerBound == null || otherUpperBound == null) return false; final long lowerBoundValue = lowerBound.getValue(); return lowerBoundValue == (otherUpperBound.getValue()) && (set.isUpperBoundClosed() != isLowerBoundClosed()); }
@Override public boolean isPreceding(final IContinuousLongSet set) { final IContinuousLongBound upperBound = getUpperBound(); final IContinuousLongBound otherLowerBound = set.getLowerBound(); if ((upperBound == null) || (otherLowerBound == null)) return false; final long upperBoundValue = upperBound.getValue(); return upperBoundValue == (otherLowerBound.getValue()) && (set.isLowerBoundClosed() != isUpperBoundClosed()); }