Uses of Class
cloud.opencode.base.date.extra.LocalTimeRange
Packages that use LocalTimeRange
-
Uses of LocalTimeRange in cloud.opencode.base.date.extra
Fields in cloud.opencode.base.date.extra declared as LocalTimeRangeModifier and TypeFieldDescriptionstatic final LocalTimeRangeLocalTimeRange.AFTERNOONAfternoon (12:00 - 18:00)static final LocalTimeRangeLocalTimeRange.ALL_DAYA range representing the entire daystatic final LocalTimeRangeLocalTimeRange.BUSINESS_HOURSCommon business hours (9:00 - 17:00)static final LocalTimeRangeLocalTimeRange.EVENINGEvening (18:00 - 22:00)static final LocalTimeRangeLocalTimeRange.MORNINGMorning (6:00 - 12:00)Methods in cloud.opencode.base.date.extra that return LocalTimeRangeModifier and TypeMethodDescriptionExpands the range by the specified duration on both ends 在两端按指定持续时间扩展范围LocalTimeRange.intersection(LocalTimeRange other) Gets the intersection with another range 获取与另一个范围的交集static LocalTimeRangeCreates a LocalTimeRange from two times 从两个时间创建LocalTimeRangestatic LocalTimeRangeLocalTimeRange.ofDuration(LocalTime start, Duration duration) Creates a LocalTimeRange from start time and duration 从开始时间和持续时间创建LocalTimeRangestatic LocalTimeRangeLocalTimeRange.ofHours(int startHour, int endHour) Creates a LocalTimeRange from hours 从小时创建LocalTimeRangestatic LocalTimeRangeParses a LocalTimeRange from a string 从字符串解析LocalTimeRangeShifts the range by the specified duration 按指定持续时间移动范围Returns a new range with the end adjusted 返回调整结束时间后的新范围Returns a new range with the start adjusted 返回调整开始时间后的新范围Methods in cloud.opencode.base.date.extra with parameters of type LocalTimeRangeModifier and TypeMethodDescriptionbooleanLocalTimeRange.contains(LocalTimeRange other) Checks if this range fully contains another range 检查此范围是否完全包含另一个范围LocalTimeRange.intersection(LocalTimeRange other) Gets the intersection with another range 获取与另一个范围的交集booleanLocalTimeRange.overlaps(LocalTimeRange other) Checks if this range overlaps with another range 检查此范围是否与另一个范围重叠 -
Uses of LocalTimeRange in cloud.opencode.base.date.range
Methods in cloud.opencode.base.date.range that return LocalTimeRangeModifier and TypeMethodDescriptionTimeRange.toLocalTimeRange()Deprecated.Converts to LocalTimeRange 转换为LocalTimeRangeMethods in cloud.opencode.base.date.range with parameters of type LocalTimeRangeModifier and TypeMethodDescriptionstatic TimeRangeTimeRange.from(LocalTimeRange range) Deprecated.Creates a TimeRange from a LocalTimeRange 从LocalTimeRange创建TimeRange