Skip to content
Snippets Groups Projects
Commit c5512956 authored by ArktikHunter's avatar ArktikHunter
Browse files

Shift.overlaps implemented, not tested

parent 666804ea
No related branches found
No related tags found
No related merge requests found
...@@ -153,9 +153,12 @@ public class Shift { ...@@ -153,9 +153,12 @@ public class Shift {
return shiftID; return shiftID;
} }
//todo public String getPosition(){
// output: true if this shift and the given shift overlap at all, otherwise false return position;
public boolean overlaps(Shift otherShift){ }
return false;
// output: true if the two overlap at all, otherwise false
public static boolean overlaps(Shift a, Shift b){
return a.getEnd().isBefore(b.getStart()) && b.getEnd().isBefore(a.getStart());
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment