Klasse ActivityHelper
java.lang.Object
com.flexganttfx.model.util.ActivityHelper
A helper class for working with activities.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic booleanintersect(long startTime1, long endTime1, long startTime2, long endTime2) Checks whether the two given time bounds intersect with each other.static booleanChecks whether the time bounds of the two given activities intersect with each other.static booleanChecks whether the two given time bounds intersect with each other.static booleanChecks whether the two given time bounds intersect with each other.
-
Konstruktordetails
-
ActivityHelper
public ActivityHelper()
-
-
Methodendetails
-
intersect
-
intersect
public static boolean intersect(Instant startTime1, Instant endTime1, Instant startTime2, Instant endTime2) Checks whether the two given time bounds intersect with each other.- Parameter:
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 interval- Gibt zurück:
- true if the time intervals intersect with each other
-
intersect
public static boolean intersect(long startTime1, long endTime1, long startTime2, long endTime2) Checks whether the two given time bounds intersect with each other.- Parameter:
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 interval- Gibt zurück:
- true if the time intervals intersect with each other
-
intersect
public static boolean intersect(LocalTime startTime1, LocalTime endTime1, LocalTime startTime2, LocalTime endTime2) Checks whether the two given time bounds intersect with each other.- Parameter:
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 interval- Gibt zurück:
- true if the time intervals intersect with each other
-