public static boolean adOrOver ( Bound < ? > left , Bound < ? > right ) { boolean isValueEqual = left . getValue ( ) . equals ( right . getValue ( ) ) ; boolean isBothOpen = left . getBoundaryType ( ) == RangeBoundary . OPEN && right . getBoundaryType ( ) == RangeBoundary . OPEN ; return isValueEqual && ! isBothOpen ; }
Returns true if left is overlapping or adjacent to right