Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java84 import java.time.temporal.WeekFields;
98 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_of_DayOfWeek_int_singleton()
101 assertSame(WeekFields.of(firstDayOfWeek, minDays), week); in test_of_DayOfWeek_int_singleton()
107 WeekFields week = WeekFields.of(firstDayOfWeek, minDays); in test_basics()
128 assertEquals(date.get(WeekFields.ISO.dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
129 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 1).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
130 assertEquals(date.get(WeekFields.of(DayOfWeek.MONDAY, 7).dayOfWeek()), 1); in test_dayOfWeekField_simpleGet()
131 assertEquals(date.get(WeekFields.SUNDAY_START.dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
132 assertEquals(date.get(WeekFields.of(DayOfWeek.SUNDAY, 1).dayOfWeek()), 2); in test_dayOfWeekField_simpleGet()
133 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/main/java/java/time/temporal/
DWeekFields.java189 public final class WeekFields implements Serializable { class
201 …private static final ConcurrentMap<String, WeekFields> CACHE = new ConcurrentHashMap<>(4, 0.75f, 2…
215 public static final WeekFields ISO = WeekFields.of(DayOfWeek.MONDAY, 4);
224 public static final WeekFields SUNDAY_START = WeekFields.of(DayOfWeek.SUNDAY, 1);
302 public static WeekFields of(Locale locale) { in of()
314 return WeekFields.of(dow, minDays); in of()
337 public static WeekFields of(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in of()
339 WeekFields rules = CACHE.get(key); in of()
341 rules = new WeekFields(firstDayOfWeek, minimalDaysInFirstWeek); in of()
356 private WeekFields(DayOfWeek firstDayOfWeek, int minimalDaysInFirstWeek) { in WeekFields() method in WeekFields
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java72 import java.time.temporal.WeekFields;
84 public static final WeekFields WEEKDEF = WeekFields.of(Locale.US);
106 WeekFields weekDef = WeekFields.of(locale); in test_parse_textField()
167 assertEquals(parsed.isSupported(WeekFields.of(locale).dayOfWeek()), true); in test_parse_textLocalDate()
168 assertEquals(parsed.isSupported(WeekFields.of(locale).weekOfMonth()) || in test_parse_textLocalDate()
169 parsed.isSupported(WeekFields.of(locale).weekOfYear()), true); in test_parse_textLocalDate()
202 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/test/java/time/test/java/time/temporal/
DTestChronoField.java65 import java.time.temporal.WeekFields;
137 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_WeekFields_week_based_year()
144 TemporalField weekOfYearField = WeekFields.SUNDAY_START.weekOfYear(); in test_nullWeekFields_week_based_year()
DTestIsoWeekFields.java42 import java.time.temporal.WeekFields;
57 {WeekFields.ISO.weekOfWeekBasedYear(), WeekFields.ISO.weekBasedYear()}, in data_Fields()
83 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer()
288 assertTrue(WeekFields.ISO == WeekFields.of(DayOfWeek.MONDAY, 4)); in test_ISOSingleton()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestIsoChronoImpl.java71 import java.time.temporal.WeekFields;
129 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/test/java/time/test/java/time/format/
DTestUnicodeExtension.java52 import java.time.temporal.WeekFields;
892 DayOfWeek dow = WeekFields.of(locale).getFirstDayOfWeek(); in test_firstDayOfWeek()
898 int minDays = WeekFields.of(locale).getMinimalDaysInFirstWeek(); in test_minDaysInFirstWeek()
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java78 import java.time.temporal.WeekFields;
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java110 import java.time.temporal.WeekFields;
5110 WeekFields weekDef = WeekFields.of(locale); in printerParser()
/libcore/
Dopenjdk_java_files.bp870 "ojluni/src/main/java/java/time/temporal/WeekFields.java",
DEXPECTED_UPSTREAM883 …main/java/java/time/temporal/WeekFields.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java…
/libcore/api/
Dcurrent.txt12954 public final class WeekFields implements java.io.Serializable {
12958 method public static java.time.temporal.WeekFields of(java.util.Locale);
12959 method public static java.time.temporal.WeekFields of(java.time.DayOfWeek, int);
12964 field public static final java.time.temporal.WeekFields ISO;
12965 field public static final java.time.temporal.WeekFields SUNDAY_START;