/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Extra;

import java.util.Comparator;

/**
 *
 * @author felix
 */
class Ordena implements Comparator <Circulo>{

    public Ordena() {
    }

    @Override
    public int compare(Circulo o1, Circulo o2) {
        
        if(o1.Area() < o2.Area()) return -1;
        else if(o1.Area() == o2.Area()) return 0;
        else return 1;
    }
    
}
