Back to project page WarehouseBarcode.
The source code is released under:
MIT License
If you think the Android project WarehouseBarcode listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.hlgranite.warehousescanner; /*from w ww . j a va2s.c o m*/ import java.util.Comparator; /** * Created by yeang-shing.then on 10/1/13. */ public class AreaComparator implements Comparator<Stock> { @Override public int compare(Stock lhs, Stock rhs) { lhs.getBalance(); Long area1 = lhs.getArea().getValue(); rhs.getBalance(); Long area2 = rhs.getArea().getValue(); return area1.compareTo(area2); } }