private static String dumpPolicyEntries(List<Entry> entries) {
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < entries.size(); ++i) {
      final Entry entry = entries.get(i);
      sb.append(String.format("\n    Policy entry %d. Low: %f. High: %f. Work Factor: %f",
          i,
          entry.getLowWaterMarkPercent(),
          entry.getHighWaterMarkPercent(),
          entry.getWorkFactor()));
    }
    return sb.toString();
  }
A comparator that orders {@link Entry} instances in descending order first by
high water mark and then by low water mark.
samza-core/src/main/java/org/apache/samza/container/disk/WatermarkDiskQuotaPolicy.java