1 package uk.ac.ebi.intenz.domain.enzyme; 2 3 import java.util.Comparator; 4 5 /** 6 * Compares enzyme entries according to their EC number. 7 * @author rafalcan 8 */ 9 public class EnzymeEntryEcComparator implements Comparator<EnzymeEntry> { 10 11 public int compare(EnzymeEntry o1, EnzymeEntry o2) { 12 return o1.getEc().compareTo(o2.getEc()); 13 } 14 15 }