Subversion Repositories SmartDukaan

Rev

Rev 8439 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8438 vikram.rag 1
package com.amazonaws.mws.samples;
2
 
3
import java.util.Comparator;
4
 
5
public class MovingComparator implements Comparator<ExcelRow> {
6
	@Override
7
	public int compare(ExcelRow  o1, ExcelRow o2) {
8
		if (o1.getPO_QTY() > o2.getPO_QTY()) {
9
			return -1;
10
		} else if (o1.getAVERAGE_SALE() < o2.getAVERAGE_SALE()) {
11
			return 1;
12
		}
13
		return 0;
14
	}
15
}