Package org.beangle.commons.lang.time
Class WeekTimes
- java.lang.Object
-
- org.beangle.commons.lang.time.WeekTimes
-
public class WeekTimes extends Object
-
-
Constructor Summary
Constructors Constructor Description WeekTimes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanMergerWith(WeekTime me, WeekTime other)判断两个时间是否可以合并
判断标准为 (weekState、weekday相等) 且 (上课节次相连 或 上课节次相交) 或者节次相等则可以合并周次static List<WeekTime>mergeTimes(List<WeekTime> tobeMerged)合并相邻或者重叠的时间段
前提条件是待合并的static voidmergeWith(WeekTime me, WeekTime other)77777 将两上课时间进行合并,前提是这两上课时间可以合并
-
-
-
Method Detail
-
canMergerWith
public static boolean canMergerWith(WeekTime me, WeekTime other)
判断两个时间是否可以合并
判断标准为 (weekState、weekday相等) 且 (上课节次相连 或 上课节次相交) 或者节次相等则可以合并周次- Parameters:
other-- Returns:
-
mergeWith
public static void mergeWith(WeekTime me, WeekTime other)
77777 将两上课时间进行合并,前提是这两上课时间可以合并- Parameters:
other-- See Also:
#canMergerWith(WeekTime)
-
-