public final static String stringifyDiskRanges(DiskRangeList range) {
    StringBuilder buffer = new StringBuilder();
    buffer.append("[");
    boolean isFirst = true;
    while (range != null) {
      if (!isFirst) {
        buffer.append(", {");
      } else {
        buffer.append("{");
      }
      isFirst = false;
      buffer.append(range.toString());
      buffer.append("}");
      range = range.next;
    }
    buffer.append("]");
    return buffer.toString();
  }
Replaces this element with another in the list; returns the new element.
@param other the disk range to swap into this list
@return the new element
storage-api/src/java/org/apache/hadoop/hive/common/io/DiskRangeList.java