当前位置: 首页>>代码示例>>Java>>正文


Java TemporalQueries.chronology方法代码示例

本文整理汇总了Java中java.time.temporal.TemporalQueries.chronology方法的典型用法代码示例。如果您正苦于以下问题:Java TemporalQueries.chronology方法的具体用法?Java TemporalQueries.chronology怎么用?Java TemporalQueries.chronology使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.time.temporal.TemporalQueries的用法示例。


在下文中一共展示了TemporalQueries.chronology方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_2008_06, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {TEST_2008_06, TemporalQueries.zoneId(), null},
            {TEST_2008_06, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {TEST_2008_06, TemporalQueries.zone(), null},
            {TEST_2008_06, TemporalQueries.offset(), null},
            {TEST_2008_06, TemporalQueries.localDate(), null},
            {TEST_2008_06, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKYearMonth.java

示例2: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_2008, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {TEST_2008, TemporalQueries.zoneId(), null},
            {TEST_2008, TemporalQueries.precision(), ChronoUnit.YEARS},
            {TEST_2008, TemporalQueries.zone(), null},
            {TEST_2008, TemporalQueries.offset(), null},
            {TEST_2008, TemporalQueries.localDate(), null},
            {TEST_2008, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKYear.java

示例3: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {Month.JUNE, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {Month.JUNE, TemporalQueries.zoneId(), null},
            {Month.JUNE, TemporalQueries.precision(), ChronoUnit.MONTHS},
            {Month.JUNE, TemporalQueries.zone(), null},
            {Month.JUNE, TemporalQueries.offset(), null},
            {Month.JUNE, TemporalQueries.localDate(), null},
            {Month.JUNE, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:TCKMonth.java

示例4: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {DayOfWeek.FRIDAY, TemporalQueries.chronology(), null},
            {DayOfWeek.FRIDAY, TemporalQueries.zoneId(), null},
            {DayOfWeek.FRIDAY, TemporalQueries.precision(), ChronoUnit.DAYS},
            {DayOfWeek.FRIDAY, TemporalQueries.zone(), null},
            {DayOfWeek.FRIDAY, TemporalQueries.offset(), null},
            {DayOfWeek.FRIDAY, TemporalQueries.localDate(), null},
            {DayOfWeek.FRIDAY, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKDayOfWeek.java

示例5: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.zoneId(), null},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.precision(), ChronoUnit.NANOS},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.zone(), null},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.offset(), null},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.localDate(), LocalDate.of(2007, 7, 15)},
            {TEST_2007_07_15_12_30_40_987654321, TemporalQueries.localTime(), LocalTime.of(12, 30, 40, 987654321)},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKLocalDateTime.java

示例6: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_2007_07_15, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {TEST_2007_07_15, TemporalQueries.zoneId(), null},
            {TEST_2007_07_15, TemporalQueries.precision(), ChronoUnit.DAYS},
            {TEST_2007_07_15, TemporalQueries.zone(), null},
            {TEST_2007_07_15, TemporalQueries.offset(), null},
            {TEST_2007_07_15, TemporalQueries.localDate(), TEST_2007_07_15},
            {TEST_2007_07_15, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKLocalDate.java

示例7: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_12_30_40_987654321, TemporalQueries.chronology(), null},
            {TEST_12_30_40_987654321, TemporalQueries.zoneId(), null},
            {TEST_12_30_40_987654321, TemporalQueries.precision(), ChronoUnit.NANOS},
            {TEST_12_30_40_987654321, TemporalQueries.zone(), null},
            {TEST_12_30_40_987654321, TemporalQueries.offset(), null},
            {TEST_12_30_40_987654321, TemporalQueries.localDate(), null},
            {TEST_12_30_40_987654321, TemporalQueries.localTime(), TEST_12_30_40_987654321},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKLocalTime.java

示例8: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_12345_123456789, TemporalQueries.chronology(), null},
            {TEST_12345_123456789, TemporalQueries.zoneId(), null},
            {TEST_12345_123456789, TemporalQueries.precision(), NANOS},
            {TEST_12345_123456789, TemporalQueries.zone(), null},
            {TEST_12345_123456789, TemporalQueries.offset(), null},
            {TEST_12345_123456789, TemporalQueries.localDate(), null},
            {TEST_12345_123456789, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKInstant.java

示例9: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_11_30_59_500_PONE, TemporalQueries.chronology(), null},
            {TEST_11_30_59_500_PONE, TemporalQueries.zoneId(), null},
            {TEST_11_30_59_500_PONE, TemporalQueries.precision(), ChronoUnit.NANOS},
            {TEST_11_30_59_500_PONE, TemporalQueries.zone(), OFFSET_PONE},
            {TEST_11_30_59_500_PONE, TemporalQueries.offset(), OFFSET_PONE},
            {TEST_11_30_59_500_PONE, TemporalQueries.localDate(), null},
            {TEST_11_30_59_500_PONE, TemporalQueries.localTime(), LocalTime.of(11, 30, 59, 500)},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKOffsetTime.java

示例10: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {TEST_07_15, TemporalQueries.chronology(), IsoChronology.INSTANCE},
            {TEST_07_15, TemporalQueries.zoneId(), null},
            {TEST_07_15, TemporalQueries.precision(), null},
            {TEST_07_15, TemporalQueries.zone(), null},
            {TEST_07_15, TemporalQueries.offset(), null},
            {TEST_07_15, TemporalQueries.localDate(), null},
            {TEST_07_15, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:13,代码来源:TCKMonthDay.java

示例11: data_query

import java.time.temporal.TemporalQueries; //导入方法依赖的package包/类
@DataProvider(name="query")
Object[][] data_query() {
    return new Object[][] {
            {ZoneOffset.UTC, TemporalQueries.chronology(), null},
            {ZoneOffset.UTC, TemporalQueries.zoneId(), null},
            {ZoneOffset.UTC, TemporalQueries.precision(), null},
            {ZoneOffset.UTC, TemporalQueries.zone(), ZoneOffset.UTC},
            {ZoneOffset.UTC, TemporalQueries.offset(), ZoneOffset.UTC},
            {ZoneOffset.UTC, TemporalQueries.localDate(), null},
            {ZoneOffset.UTC, TemporalQueries.localTime(), null},
    };
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:13,代码来源:TCKZoneOffset.java


注:本文中的java.time.temporal.TemporalQueries.chronology方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。