package com.vst.util;
import com.vst.model.Strength;
import java.util.Comparator;
/**
* Created by IntelliJ IDEA.
* User: ALEXEI
* Date: 29.03.2008
* Time: 7:09:53
* To change this template use File | Settings | File Templates.
*/
public class StrengthComparator implements Comparator {
public int compare(Object o1, Object o2) {
Strength strength1=(Strength)o1;
Strength strength2=(Strength)o2;
if(strength1.getStrengthValue()<=strength2.getStrengthValue()){
return 0;
}
return 1; //To change body of implemented methods use File | Settings | File Templates.
}
}