/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestIsoWeekFields.java | 38 import java.time.temporal.TemporalField; 63 public void test_WOWBY_basics(TemporalField weekField, TemporalField yearField) { in test_WOWBY_basics() 71 public void test_WOWBY_isSupportedBy(TemporalField weekField, TemporalField yearField) { in test_WOWBY_isSupportedBy() 85 public void test_WOWBY_range(TemporalField weekField, TemporalField yearField) { in test_WOWBY_range() 90 public void test_WOWBY_rangeRefinedBy(TemporalField weekField, TemporalField yearField) { in test_WOWBY_rangeRefinedBy() 104 public void test_WBY_basics(TemporalField weekField, TemporalField yearField) { in test_WBY_basics() 112 public void test_WBY_isSupportedBy(TemporalField weekField, TemporalField yearField) { in test_WBY_isSupportedBy() 125 public void test_WBY_range(TemporalField weekField, TemporalField yearField) { in test_WBY_range() 130 public void test_WBY_rangeRefinedBy(TemporalField weekField, TemporalField yearField) { in test_WBY_rangeRefinedBy() 136 public void test_getFrom(TemporalField weekField, TemporalField yearField) { in test_getFrom() [all …]
|
D | MockFieldValue.java | 64 import java.time.temporal.TemporalField; 73 private final TemporalField field; 76 public MockFieldValue(TemporalField field, long value) { in MockFieldValue() 82 public boolean isSupported(TemporalField field) { in isSupported() 87 public ValueRange range(TemporalField field) { in range() 98 public long getLong(TemporalField field) { in getLong()
|
D | TestDateTimeBuilderCombinations.java | 81 import java.time.temporal.TemporalField; 105 public void test_derive(final TemporalField field1, final Number value1, in test_derive() 106 final TemporalField field2, final Number value2, in test_derive() 107 final TemporalField field3, final Number value3, in test_derive() 108 final TemporalField field4, final Number value4, in test_derive() 113 public boolean isSupported(TemporalField field) { in test_derive() 117 public long getLong(TemporalField field) { in test_derive() 186 …public void test_normalized(final TemporalField field1, final Number value1, TemporalField expecte… in test_normalized() 190 public boolean isSupported(TemporalField field) { in test_normalized() 194 public long getLong(TemporalField field) { in test_normalized()
|
D | MockFieldNoValue.java | 68 import java.time.temporal.TemporalField; 75 public enum MockFieldNoValue implements TemporalField {
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractDateTimeTest.java | 67 import java.time.temporal.TemporalField; 89 protected abstract List<TemporalField> validFields(); in validFields() 95 protected abstract List<TemporalField> invalidFields(); in invalidFields() 103 for (TemporalField field : validFields()) { in basicTest_isSupported_TemporalField_supported() 112 for (TemporalField field : invalidFields()) { in basicTest_isSupported_TemporalField_unsupported() 131 for (TemporalField field : validFields()) { in basicTest_range_TemporalField_supported() 140 for (TemporalField field : invalidFields()) { in basicTest_range_TemporalField_unsupported() 169 for (TemporalField field : validFields()) { in basicTest_get_TemporalField_supported() 187 for (TemporalField field : invalidFields()) { in basicTest_get_TemporalField_unsupported() 223 for (TemporalField field : validFields()) { in basicTest_getLong_TemporalField_supported() [all …]
|
D | TCKDayOfWeek.java | 79 import java.time.temporal.TemporalField; 109 protected List<TemporalField> validFields() { in validFields() 110 TemporalField[] array = { in validFields() 117 protected List<TemporalField> invalidFields() { in invalidFields() 118 … List<TemporalField> list = new ArrayList<>(Arrays.<TemporalField>asList(ChronoField.values())); in invalidFields() 167 assertEquals(DayOfWeek.THURSDAY.isSupported((TemporalField) null), false); in test_isSupported_TemporalField()
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKWeekFields.java | 80 import java.time.temporal.TemporalField; 154 TemporalField f = week.dayOfWeek(); in test_dayOfWeekField() 166 TemporalField dowField = week.dayOfWeek(); in test_weekOfMonthField() 167 TemporalField womField = week.weekOfMonth(); in test_weekOfMonthField() 199 TemporalField dowField = week.dayOfWeek(); in test_weekOfYearField() 200 TemporalField woyField = week.weekOfYear(); in test_weekOfYearField() 237 TemporalField dowField = weekDef.dayOfWeek(); in test_weekOfWeekBasedYearField() 238 TemporalField wowbyField = weekDef.weekOfWeekBasedYear(); in test_weekOfWeekBasedYearField() 239 TemporalField yowbyField = weekDef.weekBasedYear(); in test_weekOfWeekBasedYearField() 271 TemporalField womField = weekDef.weekOfMonth(); in test_fieldRanges() [all …]
|
D | TCKJulianFields.java | 72 import java.time.temporal.TemporalField; 128 public void test_samples_get(TemporalField field, LocalDate date, long expected) { in test_samples_get() 133 public void test_samples_set(TemporalField field, LocalDate date, long value) { in test_samples_set() 143 public void test_samples_parse_STRICT(TemporalField field, LocalDate date, long value) { in test_samples_parse_STRICT() 151 public void test_samples_parse_SMART(TemporalField field, LocalDate date, long value) { in test_samples_parse_SMART() 159 public void test_samples_parse_LENIENT(TemporalField field, LocalDate date, long value) { in test_samples_parse_LENIENT()
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAccessor.java | 126 boolean isSupported(TemporalField field); in isSupported() 169 default ValueRange range(TemporalField field) { in range() 217 default int get(TemporalField field) { in get() 255 long getLong(TemporalField field); in getLong()
|
D | JulianFields.java | 141 public static final TemporalField JULIAN_DAY = Field.JULIAN_DAY; 182 public static final TemporalField MODIFIED_JULIAN_DAY = Field.MODIFIED_JULIAN_DAY; 202 public static final TemporalField RATA_DIE = Field.RATA_DIE; 214 private static enum Field implements TemporalField { 292 …Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyl… in resolve() argument
|
D | WeekFields.java | 250 private final transient TemporalField dayOfWeek = ComputedDayOfField.ofDayOfWeekField(this); 254 private final transient TemporalField weekOfMonth = ComputedDayOfField.ofWeekOfMonthField(this); 258 private final transient TemporalField weekOfYear = ComputedDayOfField.ofWeekOfYearField(this); 266 …private final transient TemporalField weekOfWeekBasedYear = ComputedDayOfField.ofWeekOfWeekBasedYe… 274 …private final transient TemporalField weekBasedYear = ComputedDayOfField.ofWeekBasedYearField(this… 428 public TemporalField dayOfWeek() { in dayOfWeek() 474 public TemporalField weekOfMonth() { in weekOfMonth() 519 public TemporalField weekOfYear() { in weekOfYear() 569 public TemporalField weekOfWeekBasedYear() { in weekOfWeekBasedYear() 611 public TemporalField weekBasedYear() { in weekBasedYear() [all …]
|
D | TemporalField.java | 94 public interface TemporalField { interface 375 Map<TemporalField, Long> fieldValues, in resolve() argument
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | AbstractTestPrinterParser.java | 72 import java.time.temporal.TemporalField; 128 protected DateTimeFormatter getFormatter(TemporalField field) { in getFormatter() 132 protected DateTimeFormatter getFormatter(TemporalField field, TextStyle style) { in getFormatter() 136 …protected DateTimeFormatter getFormatter(TemporalField field, int minWidth, int maxWidth, SignStyl… in getFormatter() 149 public boolean isSupported(TemporalField field) { 153 public long getLong(TemporalField field) {
|
D | TestReducedParser.java | 85 import java.time.temporal.TemporalField; 99 private DateTimeFormatter getFormatter0(TemporalField field, int width, int baseValue) { in getFormatter0() 103 …private DateTimeFormatter getFormatter0(TemporalField field, int minWidth, int maxWidth, int baseV… in getFormatter0() 107 …private DateTimeFormatter getFormatterBaseDate(TemporalField field, int minWidth, int maxWidth, in… in getFormatterBaseDate() 121 …public void test_parse_error(TemporalField field, int width, int baseValue, String text, int pos, … in test_parse_error() 186 …public void test_parseAllStrict(TemporalField field, int width, int baseValue, String input, int p… in test_parseAllStrict() 200 …public void test_parseAllLenient(TemporalField field, int width, int baseValue, String input, int … in test_parseAllLenient() 272 …public void test_parseStrict(TemporalField field, int minWidth, int maxWidth, int baseValue, Strin… in test_parseStrict() 287 …public void test_parseStrict_baseDate(TemporalField field, int minWidth, int maxWidth, int baseVal… in test_parseStrict_baseDate() 305 …public void test_parseLenient(TemporalField field, int minWidth, int maxWidth, int baseValue, Stri… in test_parseLenient() [all …]
|
D | TestTextParser.java | 74 import java.time.temporal.TemporalField; 98 …public void test_parse_error(TemporalField field, TextStyle style, String text, int pos, Class<?> … in test_parse_error() 249 …public void test_parseText(TemporalField field, TextStyle style, int value, String input) throws E… in test_parseText() 256 …public void test_parseNumber(TemporalField field, TextStyle style, int value, String input) throws… in test_parseNumber() 263 …public void test_parseStandaloneText(Locale locale, TemporalField field, TextStyle style, int expe… in test_parseStandaloneText() 280 …public void test_parse_strict_caseSensitive_parseUpper(TemporalField field, TextStyle style, int v… in test_parse_strict_caseSensitive_parseUpper() 292 …public void test_parse_strict_caseInsensitive_parseUpper(TemporalField field, TextStyle style, int… in test_parse_strict_caseInsensitive_parseUpper() 301 …public void test_parse_strict_caseSensitive_parseLower(TemporalField field, TextStyle style, int v… in test_parse_strict_caseSensitive_parseLower() 313 …public void test_parse_strict_caseInsensitive_parseLower(TemporalField field, TextStyle style, int… in test_parse_strict_caseInsensitive_parseLower() 430 …public void test_parseLenientText(Locale locale, TemporalField field, int expectedValue, String in… in test_parseLenientText()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | Era.java | 75 import java.time.temporal.TemporalField; 145 default boolean isSupported(TemporalField field) { in isSupported() 178 default ValueRange range(TemporalField field) { in range() 208 default int get(TemporalField field) { in get() 238 default long getLong(TemporalField field) { in getLong()
|
D | HijrahEra.java | 68 import java.time.temporal.TemporalField; 151 public ValueRange range(TemporalField field) { in range()
|
D | ChronoZonedDateTime.java | 82 import java.time.temporal.TemporalField; 179 default ValueRange range(TemporalField field) { in range() 190 default int get(TemporalField field) { in get() 204 default long getLong(TemporalField field) { in getLong() 376 boolean isSupported(TemporalField field); in isSupported() 422 ChronoZonedDateTime<D> with(TemporalField field, long newValue); in with()
|
/libcore/ojluni/src/main/java/java/time/ |
D | DayOfWeek.java | 73 import java.time.temporal.TemporalField; 251 public boolean isSupported(TemporalField field) { in isSupported() 281 public ValueRange range(TemporalField field) { in range() 314 public int get(TemporalField field) { in get() 344 public long getLong(TemporalField field) { in getLong()
|
D | Month.java | 75 import java.time.temporal.TemporalField; 278 public boolean isSupported(TemporalField field) { in isSupported() 308 public ValueRange range(TemporalField field) { in range() 341 public int get(TemporalField field) { in get() 371 public long getLong(TemporalField field) { in getLong()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKIsoChronology.java | 74 import java.time.temporal.TemporalField; 100 public boolean isSupported(TemporalField field) { in factory_from_TemporalAccessor_chronology() 105 public long getLong(TemporalField field) { in factory_from_TemporalAccessor_chronology() 124 public boolean isSupported(TemporalField field) { in factory_from_TemporalAccessor_noChronology() 129 public long getLong(TemporalField field) { in factory_from_TemporalAccessor_noChronology() 153 public boolean isSupported(TemporalField field) { in test_date_TemporalAccessor() 161 public long getLong(TemporalField field) { in test_date_TemporalAccessor() 189 public boolean isSupported(TemporalField field) { in test_localDateTime_TemporalAccessor() 197 public long getLong(TemporalField field) { in test_localDateTime_TemporalAccessor() 231 public boolean isSupported(TemporalField field) { in test_zonedDateTime_TemporalAccessor() [all …]
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 77 import java.time.temporal.TemporalField; 187 public boolean isSupported(TemporalField field) { in adjust() 194 public ValueRange range(TemporalField field) { in adjust() 201 public long getLong(TemporalField field) { in adjust() 296 Long getValue(TemporalField field) {
|
D | Parsed.java | 95 import java.time.temporal.TemporalField; 129 final Map<TemporalField, Long> fieldValues = new HashMap<>(); 180 public boolean isSupported(TemporalField field) { in isSupported() 190 public long getLong(TemporalField field) { in getLong() 239 TemporalAccessor resolve(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in resolve() 266 for (Map.Entry<TemporalField, Long> entry : fieldValues.entrySet()) { in resolveFields() 267 TemporalField targetField = entry.getKey(); in resolveFields() 317 …private void updateCheckConflict(TemporalField targetField, TemporalField changeField, Long change… in updateCheckConflict() 527 for (Entry<TemporalField, Long> entry : fieldValues.entrySet()) { in resolveTimeLenient() 528 TemporalField field = entry.getKey(); in resolveTimeLenient() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/ |
D | TCKJulianFieldsSerialization.java | 64 import java.time.temporal.TemporalField; 90 public void test_serializable(TemporalField field) throws IOException, ClassNotFoundException { in test_serializable()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeParseResolver.java | 119 import java.time.temporal.TemporalField; 152 public void test_resolveOneNoChange(TemporalField field1, long value1) { in test_resolveOneNoChange() 189 …public void test_resolveTwoNoChange(TemporalField field1, long value1, TemporalField field2, long … in test_resolveTwoNoChange() 220 …lic void test_resolveThreeNoChange(TemporalField field1, long value1, TemporalField field2, long v… in test_resolveThreeNoChange() 255 public void test_resolveOneToField(TemporalField field1, long value1, in test_resolveOneToField() 256 TemporalField expectedField1, Long expectedValue1, in test_resolveOneToField() 257 TemporalField expectedField2, Long expectedValue2) { in test_resolveOneToField() 283 public void test_resolveOneToDate(TemporalField field1, long value1, LocalDate expectedDate) { in test_resolveOneToDate() 308 public void test_resolveOneToTime(TemporalField field1, long value1, LocalTime expectedTime) { in test_resolveOneToTime() 334 public void test_resolveTwoToField(TemporalField field1, long value1, in test_resolveTwoToField() [all …]
|