package com.nantian.cloud.dbcapp.tool;

import com.nantian.cloud.dbcapp.bean.PublicInstutionAllArea;

import java.util.Comparator;

public class ListComparetor implements Comparator {

    @Override
    public int compare(Object o1, Object o2) {
        PublicInstutionAllArea publicInstutionAllArea_01=(PublicInstutionAllArea) o1;
        PublicInstutionAllArea publicInstutionAllArea_02=(PublicInstutionAllArea) o2;
        return new Double(publicInstutionAllArea_01.getAreaValue()).compareTo(new Double(publicInstutionAllArea_02.getAreaValue()));
    }
}
