Package com.vst.util

Source Code of com.vst.util.StrengthComparator

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.
    }
}
TOP

Related Classes of com.vst.util.StrengthComparator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.