Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int compareTo(Interval other) {
- int compare = Integer.compare(Integer.parseInt(getDay()), Integer.parseInt(other.getDay()));
- //if (day.getDay() < other.getDay())
- if (compare != 0) return compare;
- compare = startTime.compareTo(other.startTime);
- if (compare != 0) return compare;
- return Integer.compare(length, other.length);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement