package de.fuberlin.dynhist;

import java.util.Comparator;

/**
 * @author Martin Görick
 *
 * Comparator class to sort the buckets by leftBorder.
 */
public class CompareBuckets implements Comparator<Bucket> {

  public int compare(Bucket bucket1, Bucket bucket2) {
    if (bucket1.getLeftBorder() > bucket2.getLeftBorder()) {
      return 1;
    }
    return -1;
  }
}

@@ -205,16 +205,80 @@
 ket%3E %7B%0A%0A
+  /**%0A   * Return the test of the borders of two buckets.%0A   */%0A
   public

add comments