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; // www .jav a2 s . c om import java.util.Comparator; /** * Sort stock collection based on stock code alphabetically. * Created by yeang-shing.then on 10/1/13. */ public class StockCodeComparator implements Comparator<Stock> { @Override public int compare(Stock lhs, Stock rhs) { return lhs.getCode().compareTo(rhs.getCode()); } }