类 WeekDay

    • 字段详细资料

      • Mon

        public static final WeekDay Mon
      • Tue

        public static final WeekDay Tue
      • Wed

        public static final WeekDay Wed
      • Thu

        public static final WeekDay Thu
      • Fri

        public static final WeekDay Fri
      • Sat

        public static final WeekDay Sat
      • Sun

        public static final WeekDay Sun
      • All

        public static WeekDay[] All
        周一~周日
      • All_SUNDAY_FIRST

        public static WeekDay[] All_SUNDAY_FIRST
        周日~周六
    • 构造器详细资料

      • WeekDay

        public WeekDay​(int id,
                       String name,
                       String enName)
    • 方法详细资料

      • getEnName

        public String getEnName()
      • getName

        public String getName()
      • getIndex

        public int getIndex()
      • previous

        public WeekDay previous()
      • get

        public static WeekDay get​(int weekId)
        查找星期[1..7]
        参数:
        weekId -
        返回:
      • getWeekdayArray

        public static WeekDay[] getWeekdayArray​(boolean firstDayOnSunday)
      • getDayByJdkIndex

        public static WeekDay getDayByJdkIndex​(int jdkWeekdayIndex)
        根据Jdk Calendar API的weekday规则(周日:1,周一:2,...,周六:7),返回WeekDay。
        在使用的时候应该用Calendar.SUNDAY, Calendar.MONDAY,...作为参数传入,便于程序阅读
        参数:
        jdkWeekdayIndex -
        返回:
      • getWeekdayList

        public static List<WeekDay> getWeekdayList​(boolean firstDayOnSunday)
        获得WeekDay的List,从一周的第一天到一周的第最后天排序
        参数:
        firstDayOnSunday - 星期天是否一周的第一天
        返回:
      • getId

        public int getId()