Is it possible to determine the coincidence of two unlimited intervals (intervals with one boundary at infinity)?
I tried this (and other similar options):
Instant now = new Instant(new Date().getTime()); Interval i2 = new Interval(now, (ReadableInstant) null); Interval i1 = new Interval(now, (ReadableInstant) null); boolean overlapping = i2.overlaps(i1);
But according to the docs, using null
as the second parameter means βnowβ instead of βinfinityβ.
EDIT : I found this answer on the mailing list, so with Joda this seems impossible, Now I'm looking for alternatives.
source share