public static < T extends Comparable < T > > RelationalOperator < T > lessThanOrGreaterThan ( T lowerBound , T upperBound ) { return ComposableRelationalOperator . compose ( lessThan ( lowerBound ) , LogicalOperator . OR , greaterThan ( upperBound ) ) ; }
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 .