import java.util.*;

/***
 * Comparator class for Six Nimmt Cards. Useful for sorting the 
 * cards with the java.util.Collections static sort method
 **/
public class NimmtComparator<E> implements Comparator<E> {

    /** Compares two cards, returns -, 0 or + if o1 is less, equal or greater than o2 */
    public int compare(E o1, E o2) {
	NimmtCard n1 = (NimmtCard)o1;
	NimmtCard n2 = (NimmtCard)o2;
	return n1.getNumber() - n2.getNumber();       
    }

    /** This Comparator is not equal to any other Comparators */
    public boolean equals(Object o) {
	return false;
    }
}
