Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CustomComparator implements Comparator<Photos_info>
- {
- @Override
- public int compare(Photos_info lhs, Photos_info rhs)
- {
- String dateTimeLHS = lhs.getdate() + lhs.gettime();
- String dateTimeRHS = rhs.getdate() + rhs.gettime();
- return dateTimeLHS.compareTo(dateTimeRHS);
- }
- }
Add Comment
Please, Sign In to add comment