1 package ecar.servlet.relatorio.PPA.bean.comparator; 2 3 import java.util.Comparator; 4 5 import ecar.pojo.ItemEstruturaIettPPA; 6 7 public class ItemEstruturaComparatorSiglaNumero implements Comparator<ItemEstruturaIettPPA>{ 8 9 public int compare(ItemEstruturaIettPPA beanParam1, ItemEstruturaIettPPA beanParam2) { 10 11 Long bean1Long = Long.valueOf( beanParam1.getSiglaIett() ); 12 Long bean2Long = Long.valueOf( beanParam2.getSiglaIett() ); 13 14 return bean1Long.compareTo(bean2Long); 15 16 } 17 18 }