View Javadoc

1   package org.kuali.maven.ec2.pojo;
2   
3   import java.util.Comparator;
4   
5   import com.amazonaws.services.ec2.model.Image;
6   
7   public class ImageComparator implements Comparator<Image> {
8   
9       @Override
10      public int compare(Image one, Image two) {
11          String location1 = one.getImageLocation();
12          String location2 = two.getImageLocation();
13          return location1.compareTo(location2);
14      }
15  
16  }