| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInRange(LocalTime time,
LocalTime startTime,
LocalTime endTime)
Checks whether the given time is within the range of the given times.
|
static LocalTime |
parse(String time)
Parses the given local time.
|
static String |
toString(LocalTime time)
Returns the string representing the given time
Returns
24:00 if the time equals to LocalTime.MAX. |
public static boolean isInRange(LocalTime time, LocalTime startTime, LocalTime endTime)
IllegalArgumentException - if time is nullIllegalArgumentException - if startTime is nullIllegalArgumentException - if endTime is nullpublic static LocalTime parse(String time)
LocalTime.MAX if the time corresponds to 24:00.IllegalArgumentException - if time is null or emptypublic static String toString(LocalTime time)
24:00 if the time equals to LocalTime.MAX.IllegalArgumentException - if time is null