/* * interface for function objects that compare elements */ public interface Comparator { public int compare(E e1, E e2); }