jdk/src/share/classes/java/time/temporal/WeekFields.java
changeset 21331 8ee181e7e48b
parent 20873 e91d5b1cb8e6
child 22081 86eb26ff8f2b
equal deleted inserted replaced
21327:9fc34e0b2a47 21331:8ee181e7e48b
   243      */
   243      */
   244     private final int minimalDays;
   244     private final int minimalDays;
   245     /**
   245     /**
   246      * The field used to access the computed DayOfWeek.
   246      * The field used to access the computed DayOfWeek.
   247      */
   247      */
   248     private transient final TemporalField dayOfWeek = ComputedDayOfField.ofDayOfWeekField(this);
   248     private final transient TemporalField dayOfWeek = ComputedDayOfField.ofDayOfWeekField(this);
   249     /**
   249     /**
   250      * The field used to access the computed WeekOfMonth.
   250      * The field used to access the computed WeekOfMonth.
   251      */
   251      */
   252     private transient final TemporalField weekOfMonth = ComputedDayOfField.ofWeekOfMonthField(this);
   252     private final transient TemporalField weekOfMonth = ComputedDayOfField.ofWeekOfMonthField(this);
   253     /**
   253     /**
   254      * The field used to access the computed WeekOfYear.
   254      * The field used to access the computed WeekOfYear.
   255      */
   255      */
   256     private transient final TemporalField weekOfYear = ComputedDayOfField.ofWeekOfYearField(this);
   256     private final transient TemporalField weekOfYear = ComputedDayOfField.ofWeekOfYearField(this);
   257     /**
   257     /**
   258      * The field that represents the week-of-week-based-year.
   258      * The field that represents the week-of-week-based-year.
   259      * <p>
   259      * <p>
   260      * This field allows the week of the week-based-year value to be queried and set.
   260      * This field allows the week of the week-based-year value to be queried and set.
   261      * <p>
   261      * <p>
   262      * This unit is an immutable and thread-safe singleton.
   262      * This unit is an immutable and thread-safe singleton.
   263      */
   263      */
   264     private transient final TemporalField weekOfWeekBasedYear = ComputedDayOfField.ofWeekOfWeekBasedYearField(this);
   264     private final transient TemporalField weekOfWeekBasedYear = ComputedDayOfField.ofWeekOfWeekBasedYearField(this);
   265     /**
   265     /**
   266      * The field that represents the week-based-year.
   266      * The field that represents the week-based-year.
   267      * <p>
   267      * <p>
   268      * This field allows the week-based-year value to be queried and set.
   268      * This field allows the week-based-year value to be queried and set.
   269      * <p>
   269      * <p>
   270      * This unit is an immutable and thread-safe singleton.
   270      * This unit is an immutable and thread-safe singleton.
   271      */
   271      */
   272     private transient final TemporalField weekBasedYear = ComputedDayOfField.ofWeekBasedYearField(this);
   272     private final transient TemporalField weekBasedYear = ComputedDayOfField.ofWeekBasedYearField(this);
   273 
   273 
   274     //-----------------------------------------------------------------------
   274     //-----------------------------------------------------------------------
   275     /**
   275     /**
   276      * Obtains an instance of {@code WeekFields} appropriate for a locale.
   276      * Obtains an instance of {@code WeekFields} appropriate for a locale.
   277      * <p>
   277      * <p>