cdm/src/main/java/ucar/ma2/Index.java
public String toStringDebug() {
    StringBuilder sbuff = new StringBuilder(100);
    sbuff.setLength(0);

    sbuff.append(" shape= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(shape[ii]);
      sbuff.append(" ");
    }

    sbuff.append(" stride= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(stride[ii]);
      sbuff.append(" ");
    }

    /* if (name != null) {
      sbuff.append(" names= ");
      for (int ii = 0; ii < rank; ii++) {
        sbuff.append(name[ii]);
        sbuff.append(" ");
      }
    } */

    sbuff.append(" offset= ").append(offset);
    sbuff.append(" rank= ").append(rank);
    sbuff.append(" size= ").append(size);

    sbuff.append(" current= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(current[ii]);
      sbuff.append(" ");
    }

    return sbuff.toString();
  }
public String toStringDebug() {
    StringBuilder sbuff = new StringBuilder(100);
    sbuff.setLength(0);

    sbuff.append(" shape= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(shape[ii]);
      sbuff.append(" ");
    }

    sbuff.append(" stride= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(stride[ii]);
      sbuff.append(" ");
    }

    /* if (name != null) {
      sbuff.append(" names= ");
      for (int ii = 0; ii < rank; ii++) {
        sbuff.append(name[ii]);
        sbuff.append(" ");
      }
    } */

    sbuff.append(" offset= ").append(offset);
    sbuff.append(" rank= ").append(rank);
    sbuff.append(" size= ").append(size);

    sbuff.append(" current= ");
    for (int ii = 0; ii < rank; ii++) {
      sbuff.append(current[ii]);
      sbuff.append(" ");
    }

    return sbuff.toString();
  }
public String toStringDebug ( ) { StringBuilder sbuff = new StringBuilder ( 100 ) ; sbuff . setLength ( 0 ) ; sbuff . append ( " shape= " ) ; for ( int ii = 0 ; ii < rank ; ii ++ ) { sbuff . append ( shape [ ii ] ) ; sbuff . append ( " " ) ; } sbuff . append ( " stride= " ) ; for ( int ii = 0 ; ii < rank ; ii ++ ) { sbuff . append ( stride [ ii ] ) ; sbuff . append ( " " ) ; } /* if (name != null) {
      sbuff.append(" names= ");
      for (int ii = 0; ii < rank; ii++) {
        sbuff.append(name[ii]);
        sbuff.append(" ");
      }
    } */ sbuff . append ( " offset= " ) . append ( offset ) ; sbuff . append ( " rank= " ) . append ( rank ) ; sbuff . append ( " size= " ) . append ( size ) ; sbuff . append ( " current= " ) ; for ( int ii = 0 ; ii < rank ; ii ++ ) { sbuff . append ( current [ ii ] ) ; sbuff . append ( " " ) ; } return sbuff . toString ( ) ; }
String representation

@return String representation
String representation