Skip to content

Commit

Permalink
Update IntervalExtensions.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tatjana19 committed Mar 28, 2019
1 parent 3579fc5 commit d08f7f0
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,30 @@ public static boolean isBetween(final Interval timeRange, final Interval timeRan

/**
* Checks if the given time range is overlapping before the given time range to check.
* <p>
* <br>
* Here is a graphical examples where the given timeRange object is the above and the
* timeRangeToCheck object is at the bottom <br>
* <br>
* This scenario would return <code>true</code> <br>
* <br>
* _______________________<br>
* <br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;|<br>
* -----------------------<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|___|<br>
* _______________________<br>
*
* <br>
* This scenario would return <code>false</code> <br>
* <br>
* _______________________<br>
* <br>
* &nbsp;&nbsp;|&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;|<br>
* -----------------------<br>
* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|___|<br>
* _______________________<br>
*
*
* @param timeRange
* the time range
Expand Down

0 comments on commit d08f7f0

Please sign in to comment.