Learning Comparable and Comparator Interface