1 package org.kuali.common.util.metainf.model;
2
3 import java.util.Comparator;
4
5 /**
6 * Compare 2 MetaInfResource objects based on the filename portion of the location they contain.
7 */
8 public class MetaInfResourceLocationComparator implements Comparator<MetaInfResource> {
9
10 @Override
11 public int compare(MetaInfResource one, MetaInfResource two) {
12 return one.getLocation().compareTo(two.getLocation());
13 }
14
15 }