@Test public void testOverlaps() { assertEquals(expected, start.overlaps(end)); }
public boolean overlaps(final ActivationTime other) { final Date max = findMaxDate(start, other.start); final Date min = findMinDate(end, other.end); if (min == null || max == null) { return true; } else { return min.compareTo(max) >= 0; } }
ActivationTime { public boolean overlaps(final ActivationTime other) { final Date max = findMaxDate(start, other.start); final Date min = findMinDate(end, other.end); if (min == null || max == null) { return true; } else { return min.compareTo(max) >= 0; } } }
ActivationTime { public boolean overlaps(final ActivationTime other) { final Date max = findMaxDate(start, other.start); final Date min = findMinDate(end, other.end); if (min == null || max == null) { return true; } else { return min.compareTo(max) >= 0; } } ActivationTime(final Date start,
                          final Date end); }
ActivationTime { public boolean overlaps(final ActivationTime other) { final Date max = findMaxDate(start, other.start); final Date min = findMinDate(end, other.end); if (min == null || max == null) { return true; } else { return min.compareTo(max) >= 0; } } ActivationTime(final Date start,
                          final Date end); Date getStart(); Date getEnd(); boolean overlaps(final ActivationTime other); }
ActivationTime { public boolean overlaps(final ActivationTime other) { final Date max = findMaxDate(start, other.start); final Date min = findMinDate(end, other.end); if (min == null || max == null) { return true; } else { return min.compareTo(max) >= 0; } } ActivationTime(final Date start,
                          final Date end); Date getStart(); Date getEnd(); boolean overlaps(final ActivationTime other);  }