mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add helper to compare time windows
This commit is contained in:
parent
d8bb1ca95a
commit
af69361cd4
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@ public class TimeWindow {
|
|||
return end;
|
||||
}
|
||||
|
||||
public boolean larger(TimeWindow timeWindow) {
|
||||
return (this.getEnd() - this.getStart()) > (timeWindow.getEnd() - timeWindow.getStart());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "[start=" + start + "][end=" + end + "]";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue