类 WeekTimes


  • public class WeekTimes
    extends Object
    • 构造器详细资料

      • WeekTimes

        public WeekTimes()
    • 方法详细资料

      • 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)
      • mergeTimes

        public static List<WeekTime> mergeTimes​(List<WeekTime> tobeMerged)
        合并相邻或者重叠的时间段
        前提条件是待合并的
        参数:
        tobeMerged -
        返回: