Back to project page BarrelRace.
The source code is released under:
MIT License
If you think the Android project BarrelRace 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.app.ui.assignment.barrelrace.util; /*w w w. ja v a 2 s.co m*/ import java.util.Comparator; import com.app.ui.assignment.barrelrace.objects.Score; /** * @author Revanth Kumar * @description Barrel Race Game for Android * @module ScoreComparator */ /*To Compare two Objects*/ public class ScoreComparator implements Comparator<Score>{ @Override public int compare(Score s1, Score s2) { // TODO Auto-generated method stub return Long.compare(s1.getScoreTime(), s2.getScoreTime()); } }