Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package com.amazonaws.mws.samples;

import java.util.Comparator;

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