Enum Weekday
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
工作日
表示周几的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
Base.Weekday.SUNDAY
。
属性
媒体资源 | 类型 | 说明 |
SUNDAY | Enum | 星期日。 |
MONDAY | Enum | 星期一。 |
TUESDAY | Enum | 星期二。 |
WEDNESDAY | Enum | 周三。 |
THURSDAY | Enum | 星期四。 |
FRIDAY | Enum | 星期五。 |
SATURDAY | Enum | 星期六。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003e\u003ccode\u003eWeekday\u003c/code\u003e is an enum that represents the seven days of the week.\u003c/p\u003e\n"],["\u003cp\u003eTo access a specific day, use the syntax \u003ccode\u003eBase.Weekday.[DAY]\u003c/code\u003e, replacing \u003ccode\u003e[DAY]\u003c/code\u003e with the desired day (e.g., \u003ccode\u003eBase.Weekday.MONDAY\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach day of the week is represented by a corresponding property within the \u003ccode\u003eWeekday\u003c/code\u003e enum.\u003c/p\u003e\n"]]],[],null,["# Enum Weekday\n\nWeekday\n\nAn enum representing the days of the week.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nBase.Weekday.SUNDAY`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|-------------|\n| `SUNDAY` | `Enum` | Sunday. |\n| `MONDAY` | `Enum` | Monday. |\n| `TUESDAY` | `Enum` | Tuesday. |\n| `WEDNESDAY` | `Enum` | Wednesday. |\n| `THURSDAY` | `Enum` | Thursday. |\n| `FRIDAY` | `Enum` | Friday. |\n| `SATURDAY` | `Enum` | Saturday. |"]]