Looks like it. Write a small test program and try it out.
Type: Posts; User: aussiemcgr
Looks like it. Write a small test program and try it out.
You don't need this.TimeRange. I was just using that convention to indicate the current instance of the TimeRange object invoking the overlaps() method, opposed to the TimeRange object passed in the...
The easiest way, in my opinion, would be to utilize the contains(Time) method which you have already created.
Consider the fact that this.TimeRange would contain otherTime if any of these conditions...