/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hw10;

/**
 *
 * @author kvaradar
 */
public class DefaultComparator<E> implements java.util.Comparator<E> {

        public int compare(E a, E b) throws ClassCastException {
        return ((Comparable<E>) b).compareTo(a);
    }

}
