package fr.liglab.lcm.util;

/**
 * A < B <=> A.support > B.support
 */
public class ItemAndSupport implements Comparable<ItemAndSupport> {
	
	public int item;
	public int support;
	
	public ItemAndSupport(int i, int s) {
		this.item = i;
		this.support = s;
	}

	/**
	 *  Returns a negative integer, zero, or a positive integer 
	 *  as this object's support is less than, equal to, or 
	 *  greater than the specified object's support. 
	 */
	public int compareTo(ItemAndSupport other) {
		return other.support - this.support;
	}

}

@@ -483,16 +483,101 @@
 ther) %7B%0A
+%09%09if (other.support == this.support) %7B%0A%09%09%09return this.item - other.item;%0A%09%09%7D else %7B%0A%09
 %09%09return
@@ -607,14 +607,18 @@
 upport;%0A
+%09%09%7D%0A
 %09%7D%0A%0A%7D%0A

fix ItemAndSupport::compareTo