Skip to content

Commit

Permalink
clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeisen committed Mar 14, 2017
1 parent 5812b01 commit 30097e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/Interval.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ method, which is (if not overridden) utilizing the `int compareIntervals(final O
When working with mixed types of intervals, e.g., double-based (like `new Interval<>(0.1, 0.5)`) and
long-based intervals (like `new Intervals<>(5L, 6L)`), the `null` is interpreted within the specific domain of the type, e.g.,
a double cannot exceed a value as defined by `Double.MAX_VALUE`, whereby a long cannot be larger than `Long.MAX_VALUE`. Thus,
comparing mixed values using relations like `irEnds` or `irStarts` may lead to unexpected behavior, e.g., the following
example is assumed to be `false`:
comparing mixed values using relations like `irEnds` or `irStarts` may lead to unexpected behavior:

```java
new Interval<>(Double.class.cast(null), null).irEnds(new Interval<>(8L, null)) == false; // because Double.MAX_VALUE < LONG.MAX_VALUE
Expand Down

0 comments on commit 30097e4

Please sign in to comment.