blob: 7cc6fa4584718760f4d31bfb3166d69fabb7f48d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package de.danoeh.antennapod.util.comparator;
import java.util.Comparator;
import de.danoeh.antennapod.feed.Chapter;
public class ChapterStartTimeComparator implements Comparator<Chapter> {
@Override
public int compare(Chapter lhs, Chapter rhs) {
if (lhs.getStart() == rhs.getStart()) {
return 0;
} else if (lhs.getStart() < rhs.getStart()) {
return -1;
} else {
return 1;
}
}
}
|