com.almis.awe.developer.comparator.CompareLocal Maven / Gradle / Ivy
/*
* Package definition
*/
package com.almis.awe.developer.comparator;
import java.util.Comparator;
import com.almis.awe.model.entities.Global;
/**
* CompareRow Class
*
* Used to compare two rows in sort service data
*
* @author Pablo VIDAL - 09/may/2013
*/
public class CompareLocal implements Comparator {
/**
* Compare two DataList rows
*
* @param local1 Fist row
* @param local2 Row to compare with
* @return Compare diff
*/
@Override
public int compare(Global local1, Global local2) {
return local1.getName().compareToIgnoreCase(local2.getName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy