private boolean checkForRangeBoundednessAndTrimNotEqualKeyset(Set notEqualKeys,
      Object lessCondnKey, int lessOperator, Object greaterCondnKey, int greaterCondnOp)
      throws TypeMismatchException {
    // First check if the range is bounded or (unbounded and mutually
    // exclusive).
    // If it is unbounded immediately return a false
    if (isConditionSatisfied(greaterCondnKey, lessCondnKey, lessOperator)
        && isConditionSatisfied(lessCondnKey, greaterCondnKey, greaterCondnOp)) {
      // Nowremove those not equal conditions which do not satisfy the range
      if (notEqualKeys != null) {
        Iterator itr = notEqualKeys.iterator();
        Object neKey = null;
        while (itr.hasNext()) {
          neKey = itr.next();
          if (!isConditionSatisfied(neKey, greaterCondnKey, greaterCondnOp)
              || !isConditionSatisfied(neKey, lessCondnKey, lessOperator)) {
            itr.remove();
          }
        }
      }
      return true;
    } else {
      return false;
    }
  }
Checks if the Range junction containing less & greater type of inequalities has a lower and
upper bound , in the sense that they do not represent a mutually exclusive condition like a> 10
and a <9 etc. If the condition is bounded in nature, it further checks if the not equal type
keys fall in the bounded range , else it removes it from the Not Equal Keys set

@param notEqualKeys Set containing keys of operands having 'Not Equal' (!=) type conditions
@param lessCondnKey Key of the 'Less' condition operand
@param lessOperator Type of 'less' operator ( < or <=)
@param greaterCondnKey Key of the 'greater' condition operand
@param greaterCondnOp Type of 'greater' operator ( > or >=)
@return boolean true if the nature is bounded else false ( unbounded )
geode-core/src/main/java/org/apache/geode/cache/query/internal/RangeJunction.java