| 1 | package sketch; |
| 2 | |
| 3 | import java.util.Comparator; |
| 4 | |
| 5 | public class SketchIdComparator implements Comparator<Sketch> { |
| 6 | |
| 7 | private SketchIdComparator(){}; |
| 8 | |
| 9 | @Override |
| 10 | public int compare(Sketch a, Sketch b) { |
| 11 | return a.sketchID-b.sketchID; |
| 12 | } |
| 13 | |
| 14 | public static final SketchIdComparator comparator=new SketchIdComparator(); |
| 15 | |
| 16 | } |