public class ActivityHelper extends Object
Constructor and Description |
---|
ActivityHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
intersect(Activity activity1,
Activity activity2)
Checks whether the time bounds of the two given activities intersect with
each other.
|
static boolean |
intersect(Instant startTime1,
Instant endTime1,
Instant startTime2,
Instant endTime2)
Checks whether the two given time bounds intersect with each other.
|
static boolean |
intersect(LocalTime startTime1,
LocalTime endTime1,
LocalTime startTime2,
LocalTime endTime2)
Checks whether the two given time bounds intersect with each other.
|
static boolean |
intersect(long startTime1,
long endTime1,
long startTime2,
long endTime2)
Checks whether the two given time bounds intersect with each other.
|
public static boolean intersect(Activity activity1, Activity activity2)
activity1
- the first activityactivity2
- the second activitypublic static boolean intersect(Instant startTime1, Instant endTime1, Instant startTime2, Instant endTime2)
startTime1
- start time of the first time intervalendTime1
- end time of the first time intervalstartTime2
- start time of the second time intervalendTime2
- end time of the second time intervalpublic static boolean intersect(long startTime1, long endTime1, long startTime2, long endTime2)
startTime1
- start time of the first time intervalendTime1
- end time of the first time intervalstartTime2
- start time of the second time intervalendTime2
- end time of the second time intervalpublic static boolean intersect(LocalTime startTime1, LocalTime endTime1, LocalTime startTime2, LocalTime endTime2)
startTime1
- start time of the first time intervalendTime1
- end time of the first time intervalstartTime2
- start time of the second time intervalendTime2
- end time of the second time intervalCopyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.