Subversion Repositories SmartDukaan

Rev

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

package com.amazonaws.mws.samples;

import java.util.Comparator;

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