public static byte checkRange(Object value,Comparable<Object> minLimit,Comparable<Object> maxLimit){
  byte retVal=RC_WITHIN_RANGE;
  if (minLimit != null && minLimit.compareTo(value) > 0)   retVal|=RC_BELOW_RANGE;
  if (maxLimit != null && maxLimit.compareTo(value) < 0)   retVal|=RC_ABOVE_RANGE;
  return (retVal);
}

public static byte checkRange ( Object value , Comparable < Object > minLimit , Comparable < Object > maxLimit ) { byte retVal = RC_WITHIN_RANGE ; if ( minLimit != null && minLimit . compareTo ( value ) > 0 ) retVal |= RC_BELOW_RANGE ; if ( maxLimit != null && maxLimit . compareTo ( value ) < 0 ) retVal |= RC_ABOVE_RANGE ; return ( retVal ) ; }
check a value against defined range this method may be called from a static context
