Home
last modified time | relevance | path

Searched refs:TemporalField (Results 1 – 25 of 86) sorted by relevance

1234

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestIsoWeekFields.java38 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 …]
DMockFieldValue.java64 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()
DTestDateTimeBuilderCombinations.java81 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()
DMockFieldNoValue.java68 import java.time.temporal.TemporalField;
75 public enum MockFieldNoValue implements TemporalField {
/libcore/ojluni/src/test/java/time/tck/java/time/
DAbstractDateTimeTest.java67 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 …]
DTCKDayOfWeek.java79 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/
DTCKWeekFields.java80 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 …]
DTCKJulianFields.java72 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/
DTemporalAccessor.java126 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()
DJulianFields.java141 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
DWeekFields.java250 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…
427 public TemporalField dayOfWeek() { in dayOfWeek()
473 public TemporalField weekOfMonth() { in weekOfMonth()
518 public TemporalField weekOfYear() { in weekOfYear()
568 public TemporalField weekOfWeekBasedYear() { in weekOfWeekBasedYear()
610 public TemporalField weekBasedYear() { in weekBasedYear()
[all …]
DTemporalField.java94 public interface TemporalField { interface
375 Map<TemporalField, Long> fieldValues, in resolve() argument
DValueRange.java309 public long checkValidValue(long value, TemporalField field) { in checkValidValue()
328 public int checkValidIntValue(long value, TemporalField field) { in checkValidIntValue()
335 private String genInvalidFieldMessage(TemporalField field, long value) { in genInvalidFieldMessage()
/libcore/ojluni/src/main/java/java/time/chrono/
DEra.java75 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()
DHijrahEra.java68 import java.time.temporal.TemporalField;
151 public ValueRange range(TemporalField field) { in range()
DChronoZonedDateTime.java82 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()
DChronology.java75 import java.time.temporal.TemporalField;
636 public boolean isSupported(TemporalField field) { in getDisplayName()
640 public long getLong(TemporalField field) { in getDisplayName()
674 ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle); in resolveDate() argument
/libcore/ojluni/src/test/java/time/test/java/time/format/
DAbstractTestPrinterParser.java72 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) {
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java73 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()
DMonth.java75 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/temporal/serial/
DTCKJulianFieldsSerialization.java64 import java.time.temporal.TemporalField;
90 public void test_serializable(TemporalField field) throws IOException, ClassNotFoundException { in test_serializable()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java77 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) {
DDateTimeParseContext.java68 import java.time.temporal.TemporalField;
327 TemporalAccessor toResolved(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) { in toResolved()
347 Long getParsed(TemporalField field) { in getParsed()
363 int setParsedField(TemporalField field, long value, int errorPos, int successPos) { in setParsedField()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DChronoZonedDateTimeTest.java33 import java.time.temporal.TemporalField;
100 public boolean isSupported(TemporalField field) { in isSupported()
105 public ChronoZonedDateTime with(TemporalField field, long newValue) { in with()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java119 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 …]

1234