import java.util.Comparator;


public class reverseIntegerComparator implements Comparator<Integer> {
    

	/**
     * Compares two <code>Integer</code> objects numerically. It orders
     * the integers in decreasing order.
     *
     * @param   o1   the first <code>Integer</code> to be compared.
     * @param   o2   the second <code>Integer</code> to be compared.
     * @return	the value <code>0</code> if <code>Integer</code> o1 is
     * 		equal to <code>Integer</code> o2; a value greater than
     * 		<code>0</code> if <code>Integer</code> o1 is numerically less
     * 		than <code>Integer</code> o2; and a value less 
     * 		than <code>0</code> if <code>Integer</code> o1 is numerically
     * 		 greater than <code>Integer</code> o2 (signed
     * 		 comparison).
     * @since   1.2
     */
	public int compare(Integer o1, Integer o2) {
		int o1Val = o1.intValue();
		int o2Val = o2.intValue();
		return (o1Val<o2Val ? 1 : (o1Val==o2Val ? 0 : -1));
	}
}
