Home
last modified time | relevance | path

Searched refs:WeekFields (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java82 import java.time.temporal.WeekFields;
96 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_of_DayOfWeek_int_singleton()
99 assertSame(WeekFields.of(firstDayOfWeek, minDays), week); in test_of_DayOfWeek_int_singleton()
105 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_basics()
126 assertEquals(date.get(WeekFields.ISO.dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
127 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 1).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
128 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
129 assertEquals(date.get(WeekFields.SUNDAY_START.dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
130 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 1).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
131 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKWeekFieldsSerialization.java72 import java.time.temporal.WeekFields;
84 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_serializable_singleton()
103 WeekFields wf = WeekFields.of(DayOfWeek.MONDAY, 7); in test_invalid_serialform()
115 assertEquals(o, WeekFields.of(DayOfWeek.MONDAY, 5), "Should be MONDAY, min = 5"); in test_invalid_serialform()
126 fail("Invalid minimalDays < 1 " + WeekFields.class.getName()); in test_invalid_serialform()
137 fail("Invalid minimalDays > 7 " + WeekFields.class.getName()); in test_invalid_serialform()
148 fail("Invalid startDay == null " + WeekFields.class.getName()); in test_invalid_serialform()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java71 import java.time.temporal.WeekFields;
99 WeekFields weekDef = WeekFields.of(locale); in test_parse_textField()
159 assertEquals(parsed.isSupported(WeekFields.of(locale).dayOfWeek()), true); in test_parse_textLocalDate()
160 assertEquals(parsed.isSupported(WeekFields.of(locale).weekOfMonth()) || in test_parse_textLocalDate()
161 parsed.isSupported(WeekFields.of(locale).weekOfYear()), true); in test_parse_textLocalDate()
194 WeekFields weekDef = WeekFields.of(locale); in test_parse_WeekBasedYear()
DTCKLocalizedFieldPrinter.java67 import java.time.temporal.WeekFields;
126 WeekFields weekDef = WeekFields.of(locale); in test_print_WeekBasedYear()
/libcore/ojluni/src/main/java/java/time/temporal/
DWeekFields.java179 public final class WeekFields implements Serializable { class
191 …private static final ConcurrentMap<String, WeekFields> CACHE = new ConcurrentHashMap<>(4, 0.75f, 2…
205 public static final WeekFields ISO = new WeekFields(DayOfWeek.MONDAY, 4);
214 public static final WeekFields SUNDAY_START = WeekFields.of(DayOfWeek.SUNDAY, 1);
285 public static WeekFields of(Locale locale) { in of()
292 return WeekFields.of(dow, weekData.minimalDaysInFirstWeek); in of()
315 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of()
317 WeekFields rules = CACHE.get(key); in of()
319 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of()
334 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields() method in WeekFields
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoField.java65 import java.time.temporal.WeekFields;
138 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_WeekFields_week_based_year()
146 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_nullWeekFields_week_based_year()
DTestIsoWeekFields.java40 import java.time.temporal.WeekFields;
55 {WeekFields.ISO.weekOfWeekBasedYear(), WeekFields.ISO.weekBasedYear()}, in data_Fields()
81 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java69 import java.time.temporal.WeekFields;
126 WeekFields weekDef = WeekFields.of(firstDayOfWeek, minDays); in test_DayOfWeek_IsoChronology_vsCalendar()
DTestUmmAlQuraChronology.java66 import java.time.temporal.WeekFields;
488 assertEquals(date.get(WeekFields.of(DayOfWeek.SATURDAY, 7).dayOfWeek()), satStart); in test_dayOfWeek()
489 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 7).dayOfWeek()), sunStart); in test_dayOfWeek()
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java78 import java.time.temporal.WeekFields;
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java103 import java.time.temporal.WeekFields;
4536 WeekFields weekDef = WeekFields.of(locale); in printerParser()
/libcore/
Dopenjdk_java_files.bp827 "ojluni/src/main/java/java/time/temporal/WeekFields.java",