Back to project page Locast-Core-Android.
The source code is released under:
GNU General Public License
If you think the Android project Locast-Core-Android 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.beoui.geocell.comparator; /* ww w .j a v a2s . c o m*/ import java.util.Comparator; import com.beoui.geocell.model.Tuple; public class DoubleTupleComparator implements Comparator<Tuple<int[], Double>> { public int compare(Tuple<int[], Double> o1, Tuple<int[], Double> o2) { if(o1 == null && o2 == null) { return 0; } if(o1 == null) { return -1; } if(o2 == null) { return 1; } return o1.getSecond().compareTo(o2.getSecond()); } }