@Override public String toString(){
  if (m_RangeStrings.size() == 0) {
    return "Empty";
  }
  String result="Strings: ";
  Iterator<String> enu=m_RangeStrings.iterator();
  while (enu.hasNext()) {
    result+=enu.next() + " ";
  }
  result+="\n";
  result+="Invert: " + m_Invert + "\n";
  try {
    if (m_Upper == -1) {
      throw new RuntimeException("Upper limit has not been specified");
    }
    String cols=null;
    for (int i=0; i < m_SelectFlags.length; i++) {
      if (isInRange(i)) {
        if (cols == null) {
          cols="Cols: " + (i + 1);
        }
 else {
          cols+="," + (i + 1);
        }
      }
    }
    if (cols != null) {
      result+=cols + "\n";
    }
  }
 catch (  Exception ex) {
    result+=ex.getMessage();
  }
  return result;
}

@ Override public String toString ( ) { if ( m_RangeStrings . size ( ) == 0 ) { return "Empty" ; } String result = "Strings: " ; Iterator < String > enu = m_RangeStrings . iterator ( ) ; while ( enu . hasNext ( ) ) { result += enu . next ( ) + " " ; } result += "\n" ; result += "Invert: " + m_Invert + "\n" ; try { if ( m_Upper == - 1 ) { throw new RuntimeException ( "Upper limit has not been specified" ) ; } String cols = null ; for ( int i = 0 ; i < m_SelectFlags . length ; i ++ ) { if ( isInRange ( i ) ) { if ( cols == null ) { cols = "Cols: " + ( i + 1 ) ; } else { cols += "," + ( i + 1 ) ; } } } if ( cols != null ) { result += cols + "\n" ; } } catch ( Exception ex ) { result += ex . getMessage ( ) ; } return result ; }
constructs a representation of the current range . being a string representation , the numbers are based from 1 .
