private final static void assertInvalidOrder(
      DiskRangeList ref, DiskRangeList prev, DiskRangeList next) {
    String error = "Elements not in order " + prev + " and " + next
        + "; trying to insert into " + stringifyDiskRanges(ref);
    LOG.error(error);
    throw new AssertionError(error);
  }
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