code: public static <T extends Comparable<T>> RelationalOperator<T> lessThanOrGreaterThan(T lowerBound, T upperBound) {
      return ComposableRelationalOperator.compose(lessThan(lowerBound), LogicalOperator.OR, greaterThan(upperBound));
    }
docs: Gets the RelationalOperator performing less than or greater than comparisons to determine whether all provided
  values are less than some upper bound value or possibly greater than some lower bound value.
  
  @param lowerBound the Comparable upper bounded value.
  @param upperBound the Comparable lower bounded value.
  @param <T> the expected Class type for the object used in the less than or greater than comparison.
  @return a RelationalOperator for the less than or greater than comparison.