类 WeekTimes
- java.lang.Object
-
- org.beangle.orm.hibernate.udt.WeekTimes
-
public class WeekTimes extends Object
-
-
构造器概要
构造器 构造器 说明 WeekTimes()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleancanMergerWith(WeekTime me, WeekTime other)判断两个时间是否可以合并
判断标准为 (weekState、weekday相等) 且 (上课节次相连 或 上课节次相交) 或者节次相等则可以合并周次static List<WeekTime>mergeTimes(List<WeekTime> tobeMerged)合并相邻或者重叠的时间段
前提条件是待合并的static voidmergeWith(WeekTime me, WeekTime other)77777 将两上课时间进行合并,前提是这两上课时间可以合并
-
-
-
方法详细资料
-
canMergerWith
public static boolean canMergerWith(WeekTime me, WeekTime other)
判断两个时间是否可以合并
判断标准为 (weekState、weekday相等) 且 (上课节次相连 或 上课节次相交) 或者节次相等则可以合并周次- 参数:
other-- 返回:
-
mergeWith
public static void mergeWith(WeekTime me, WeekTime other)
77777 将两上课时间进行合并,前提是这两上课时间可以合并- 参数:
other-- 另请参阅:
#canMergerWith(WeekTime)
-
-