public static boolean isOverlappingBefore(final Interval timeRange,
		final Interval timeRangeToCheck)
	{
		return ((timeRange.getStart() != null
			&& timeRange.getStart().isAfter(timeRangeToCheck.getStart()))
			&& (timeRange.getEnd() != null
				&& timeRange.getEnd().isAfter(timeRangeToCheck.getEnd())));
	}
public static boolean isOverlappingBefore ( final Interval timeRange , final Interval timeRangeToCheck ) { return ( ( timeRange . getStart ( ) != null && timeRange . getStart ( ) . isAfter ( timeRangeToCheck . getStart ( ) ) ) && ( timeRange . getEnd ( ) != null && timeRange . getEnd ( ) . isAfter ( timeRangeToCheck . getEnd ( ) ) ) ) ; }
Checks if the given time range is overlapping before the given time range to check.

@param timeRange
the time range
@param timeRangeToCheck
the time range to check
@return true, if the given time range is overlapping before the given time range to check
otherwise false