code: private static void checkBoundaries(final RangeConfig rc) throws RangeException {
          if (rc.isNegativeInfinity()) {
              // No other checks necessary. Negative infinity is less than any
              // number
              return;
          }
  
          if (rc.isPositiveInfinity()) {
              // No other checks necessary. Positive infinity is greater than any
              // number
              return;
          }
  
          if (rc.getLeftBoundary().compareTo(rc.getRightBoundary()) > 0) {
              throw new RangeException("Left boundary must be less than right boundary (left:" + rc.getLeftBoundary() + ", right:"
                      + rc.getRightBoundary() + ")");
          }
      }
docs: Checks that right boundary is greater than left boundary.
  
  @param rc
  The range configuration
  
  @throws RangeException
  If right < left