本文整理汇总了Java中java.time.temporal.IsoFields.QUARTER_OF_YEAR属性的典型用法代码示例。如果您正苦于以下问题:Java IsoFields.QUARTER_OF_YEAR属性的具体用法?Java IsoFields.QUARTER_OF_YEAR怎么用?Java IsoFields.QUARTER_OF_YEAR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类java.time.temporal.IsoFields
的用法示例。
在下文中一共展示了IsoFields.QUARTER_OF_YEAR属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: data_resolveTwoNoChange
@DataProvider(name="resolveTwoNoChange")
Object[][] data_resolveTwoNoChange() {
return new Object[][]{
{YEAR, 2012, MONTH_OF_YEAR, 5},
{YEAR, 2012, DAY_OF_MONTH, 5},
{YEAR, 2012, DAY_OF_WEEK, 5},
{YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 5},
{YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5},
{YEAR, 2012, IsoFields.QUARTER_OF_YEAR, 3},
{YEAR, 2012, MINUTE_OF_HOUR, 5},
{YEAR, 2012, SECOND_OF_MINUTE, 5},
{YEAR, 2012, NANO_OF_SECOND, 5},
{MONTH_OF_YEAR, 5, DAY_OF_MONTH, 5},
{MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
{MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_YEAR, 5},
{MONTH_OF_YEAR, 5, ALIGNED_WEEK_OF_MONTH, 5},
{MONTH_OF_YEAR, 3, IsoFields.QUARTER_OF_YEAR, 5},
{MONTH_OF_YEAR, 5, MINUTE_OF_HOUR, 5},
{MONTH_OF_YEAR, 5, SECOND_OF_MINUTE, 5},
{MONTH_OF_YEAR, 5, NANO_OF_SECOND, 5},
};
}
示例2: data_resolveThreeNoChange
@DataProvider(name="resolveThreeNoChange")
Object[][] data_resolveThreeNoChange() {
return new Object[][]{
{YEAR, 2012, MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
{YEAR, 2012, ALIGNED_WEEK_OF_YEAR, 5, DAY_OF_MONTH, 5},
{YEAR, 2012, ALIGNED_WEEK_OF_MONTH, 5, DAY_OF_MONTH, 5},
{YEAR, 2012, MONTH_OF_YEAR, 5, DAY_OF_WEEK, 5},
{ERA, 1, MONTH_OF_YEAR, 5, DAY_OF_MONTH, 5},
{MONTH_OF_YEAR, 1, DAY_OF_MONTH, 5, IsoFields.QUARTER_OF_YEAR, 3},
{HOUR_OF_DAY, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5},
{MINUTE_OF_HOUR, 1, SECOND_OF_MINUTE, 5, NANO_OF_SECOND, 5},
};
}
示例3: data_isofields
@DataProvider(name="isofields")
Object[][] data_isofields() {
return new Object[][] {
{IsoFields.DAY_OF_QUARTER, 49, ValueRange.of(1, 91)},
{IsoFields.QUARTER_OF_YEAR, 2, ValueRange.of(1, 4)},
{IsoFields.WEEK_OF_WEEK_BASED_YEAR, 20, ValueRange.of(1, 52)},
{IsoFields.WEEK_BASED_YEAR, 2016, ValueRange.of(LocalDate.MIN.getYear(),
LocalDate.MAX.getYear())},
};
}