Subversion Repositories SmartDukaan

Rev

Rev 8439 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.amazonaws.mws.samples;

import java.util.Comparator;

public class MovingComparator implements Comparator<ExcelRow> {
        @Override
        public int compare(ExcelRow  o1, ExcelRow o2) {
                if (o1.getAVERAGE_SALE() > o2.getAVERAGE_SALE()) {
                        return -1;
                } else if (o1.getAVERAGE_SALE() < o2.getAVERAGE_SALE()) {
                        return 1;
                }
                return 0;
        }
}