| Package | Description |
|---|---|
| xyz.zhouxy.plusone.commons.time |
时间 API
1.
|
| xyz.zhouxy.plusone.commons.util |
工具类
包含树构建器(
TreeBuilder)、断言工具(AssertTools)、
ID 生成器(IdGenerator)及其它实用工具类。 |
| Modifier and Type | Method and Description |
|---|---|
static Quarter |
Quarter.fromMonth(int monthValue)
根据给定的月份值返回对应的季度
|
static Quarter |
Quarter.fromMonth(Month month)
根据给定的月份返回对应的季度
|
Quarter |
YearQuarter.getQuarter()
季度
|
Quarter |
Quarter.minus(long quarters)
减去指定数量的季度
|
static Quarter |
Quarter.of(int value)
根据给定的季度值返回对应的季度
|
Quarter |
Quarter.plus(long quarters)
加上指定数量的季度
|
static Quarter |
Quarter.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Quarter[] |
Quarter.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static YearQuarter |
YearQuarter.of(int year,
Quarter quarter)
根据指定年份与季度,创建
YearQuarter 实例 |
| Modifier and Type | Method and Description |
|---|---|
static Quarter |
DateTimeTools.getQuarter(Month month)
获取指定月份所在季度
|
Copyright © 2026. All rights reserved.