@js-joda/extra 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,15 +15,15 @@ const MathUtil = jodaInternal.MathUtil;
15
15
 
16
16
  /**
17
17
  * A year-quarter in the ISO-8601 calendar system, such as `2007-Q2`.
18
- *
18
+ *
19
19
  * `YearQuarter` is an immutable date-time object that represents the combination
20
20
  * of a year and quarter. Any field that can be derived from a year and quarter can be obtained.
21
21
  * A quarter is defined by {@link Quarter} and {@link Month.firstMonthOfQuarter} - Q1, Q2, Q3 and Q4.
22
22
  * Q1 is January to March, Q2 is April to June, Q3 is July to September and Q4 is October to December.
23
- *
23
+ *
24
24
  * This class does not store or represent a day, time or time-zone.
25
25
  * For example, the value '2nd quarter 2007' can be stored in a `YearQuarter`.
26
- *
26
+ *
27
27
  * The ISO-8601 calendar system is the modern civil calendar system used today
28
28
  * in most of the world. It is equivalent to the proleptic Gregorian calendar
29
29
  * system, in which today's rules for leap years are applied for all time.
@@ -41,7 +41,7 @@ export class YearQuarter extends Temporal {
41
41
  * - if called with 1 argument and first argument is an instance of ZoneId, then {@link YearQuarter._nowZoneId} is executed,
42
42
  * - otherwise {@link YearQuarter._nowClock} is executed
43
43
  *
44
- * @param {?(ZoneId|Clock)} zoneIdOrClock
44
+ * @param {ZoneId|Clock} [zoneIdOrClock=Clock.systemDefaultZone()]
45
45
  * @return {YearQuarter}
46
46
  */
47
47
  static now(zoneIdOrClock) {
@@ -57,11 +57,11 @@ export class YearQuarter extends Temporal {
57
57
  //-----------------------------------------------------------------------
58
58
  /**
59
59
  * Obtains the current year-quarter from the system clock in the default time-zone.
60
- *
60
+ *
61
61
  * This will query the {@link Clock.systemDefaultZone} system clock in the default
62
62
  * time-zone to obtain the current year-quarter.
63
63
  * The zone and offset will be set based on the time-zone in the clock.
64
- *
64
+ *
65
65
  * Using this method will prevent the ability to use an alternate clock for testing
66
66
  * because the clock is hard-coded.
67
67
  *
@@ -74,10 +74,10 @@ export class YearQuarter extends Temporal {
74
74
 
75
75
  /**
76
76
  * Obtains the current year-quarter from the system clock in the specified time-zone.
77
- *
77
+ *
78
78
  * This will query the {@link Clock.system} to obtain the current year-quarter.
79
79
  * Specifying the time-zone avoids dependence on the default time-zone.
80
- *
80
+ *
81
81
  * Using this method will prevent the ability to use an alternate clock for testing
82
82
  * because the clock is hard-coded.
83
83
  *
@@ -91,7 +91,7 @@ export class YearQuarter extends Temporal {
91
91
 
92
92
  /**
93
93
  * Obtains the current year-quarter from the specified clock.
94
- *
94
+ *
95
95
  * This will query the specified clock to obtain the current year-quarter.
96
96
  * Using this method allows the use of an alternate clock for testing.
97
97
  * The alternate clock may be introduced using {@link Clock} dependency injection.
@@ -101,7 +101,7 @@ export class YearQuarter extends Temporal {
101
101
  */
102
102
  static _nowClock(clock) {
103
103
  const now = LocalDate.now(clock); // called once
104
- return YearQuarter.of(now.getYear(), Quarter.from(now.getMonth()));
104
+ return YearQuarter.of(now.year(), Quarter.from(now.month()));
105
105
  }
106
106
 
107
107
  //-----------------------------------------------------------------------
@@ -195,16 +195,16 @@ export class YearQuarter extends Temporal {
195
195
  //-----------------------------------------------------------------------
196
196
  /**
197
197
  * Obtains an instance of `YearQuarter` from a temporal object.
198
- *
198
+ *
199
199
  * This obtains a year-quarter based on the specified temporal.
200
200
  * A `TemporalAccessor` represents an arbitrary set of date and time information,
201
201
  * which this factory converts to an instance of `YearQuarter`.
202
- *
202
+ *
203
203
  * The conversion extracts the {@link ChronoField.YEAR} and
204
204
  * {@link IsoFields.QUARTER_OF_YEAR} fields.
205
205
  * The extraction is only permitted if the temporal object has an ISO
206
206
  * chronology, or can be converted to a `LocalDate`.
207
- *
207
+ *
208
208
  * This method matches the signature of the functional interface {@link TemporalQuery}
209
209
  * allowing it to be used in queries via method reference, `YearQuarter.FROM`.
210
210
  *
@@ -235,7 +235,7 @@ export class YearQuarter extends Temporal {
235
235
  //-----------------------------------------------------------------------
236
236
  /**
237
237
  * Obtains an instance of `YearQuarter` from a text string using a specific formatter.
238
- *
238
+ *
239
239
  * The text is parsed using the formatter, returning a year-quarter.
240
240
  *
241
241
  * @param {string} text - the text to parse, not null
@@ -304,22 +304,22 @@ export class YearQuarter extends Temporal {
304
304
  //-----------------------------------------------------------------------
305
305
  /**
306
306
  * Checks if the specified field is supported.
307
- *
307
+ *
308
308
  * This checks if this year-quarter can be queried for the specified field.
309
309
  * If false, then calling the {@link YearQuarter.range},
310
310
  * {@link YearQuarter.get} and {@link YearQuarter.with}
311
311
  * methods will throw an exception.
312
- *
312
+ *
313
313
  * If the field is a {@link ChronoField} then the query is implemented here.
314
314
  * The supported fields are:
315
- *
315
+ *
316
316
  * - `QUARTER_OF_YEAR`
317
317
  * - `YEAR_OF_ERA`
318
318
  * - `YEAR`
319
319
  * - `ERA`
320
- *
320
+ *
321
321
  * All other `ChronoField` instances will return false.
322
- *
322
+ *
323
323
  * If the field is not a `ChronoField`, then the result of this method
324
324
  * is obtained by invoking `TemporalField.isSupportedBy(TemporalAccessor)`
325
325
  * passing `this` as the argument.
@@ -340,23 +340,23 @@ export class YearQuarter extends Temporal {
340
340
 
341
341
  /**
342
342
  * Checks if the specified unit is supported.
343
- *
343
+ *
344
344
  * This checks if the specified unit can be added to, or subtracted from, this year-quarter.
345
345
  * If false, then calling the {@link YearQuarter.plus} and
346
346
  * {@link YearQuarter.minus} methods will throw an exception.
347
- *
347
+ *
348
348
  * If the unit is a {@link ChronoUnit} then the query is implemented here.
349
349
  * The supported units are:
350
- *
350
+ *
351
351
  * - `QUARTER_YEARS`
352
352
  * - `YEARS`
353
353
  * - `DECADES`
354
354
  * - `CENTURIES`
355
355
  * - `MILLENNIA`
356
356
  * - `ERAS`
357
- *
357
+ *
358
358
  * All other `ChronoUnit` instances will return false.
359
- *
359
+ *
360
360
  * If the unit is not a `ChronoUnit`, then the result of this method
361
361
  * is obtained by invoking `TemporalUnit.isSupportedBy(Temporal)`
362
362
  * passing `this` as the argument.
@@ -378,17 +378,17 @@ export class YearQuarter extends Temporal {
378
378
  //-----------------------------------------------------------------------
379
379
  /**
380
380
  * Gets the range of valid values for the specified field.
381
- *
381
+ *
382
382
  * The range object expresses the minimum and maximum valid values for a field.
383
383
  * This year-quarter is used to enhance the accuracy of the returned range.
384
384
  * If it is not possible to return the range, because the field is not supported
385
385
  * or for some other reason, an exception is thrown.
386
- *
386
+ *
387
387
  * If the field is a {@link ChronoField} then the query is implemented here.
388
388
  * The {@link YearQuarter.isSupported} supported fields will return
389
389
  * appropriate range instances.
390
390
  * All other `ChronoField` instances will throw an `UnsupportedTemporalTypeException`.
391
- *
391
+ *
392
392
  * If the field is not a `ChronoField`, then the result of this method
393
393
  * is obtained by invoking `TemporalField.rangeRefinedBy(TemporalAccessor)`
394
394
  * passing `this` as the argument.
@@ -413,17 +413,17 @@ export class YearQuarter extends Temporal {
413
413
 
414
414
  /**
415
415
  * Gets the value of the specified field from this year-quarter as an `int`.
416
- *
416
+ *
417
417
  * This queries this year-quarter for the value for the specified field.
418
418
  * The returned value will always be within the valid range of values for the field.
419
419
  * If it is not possible to return the value, because the field is not supported
420
420
  * or for some other reason, an exception is thrown.
421
- *
421
+ *
422
422
  * If the field is a {@link ChronoField} then the query is implemented here.
423
423
  * The {@link YearQuarter.isSupported} supported fields will return valid
424
424
  * values based on this year-quarter,.
425
425
  * All other `ChronoField` instances will throw an `UnsupportedTemporalTypeException`.
426
- *
426
+ *
427
427
  * If the field is not a `ChronoField`, then the result of this method
428
428
  * is obtained by invoking `TemporalField.getFrom(TemporalAccessor)`
429
429
  * passing `this` as the argument. Whether the value can be obtained,
@@ -445,16 +445,16 @@ export class YearQuarter extends Temporal {
445
445
 
446
446
  /**
447
447
  * Gets the value of the specified field from this year-quarter as a `long`.
448
- *
448
+ *
449
449
  * This queries this year-quarter for the value for the specified field.
450
450
  * If it is not possible to return the value, because the field is not supported
451
451
  * or for some other reason, an exception is thrown.
452
- *
452
+ *
453
453
  * If the field is a {@link ChronoField} then the query is implemented here.
454
454
  * The {@link YearQuarter.isSupported} supported fields will return valid
455
455
  * values based on this year-quarter.
456
456
  * All other `ChronoField` instances will throw an `UnsupportedTemporalTypeException`.
457
- *
457
+ *
458
458
  * If the field is not a `ChronoField`, then the result of this method
459
459
  * is obtained by invoking `TemporalField.getFrom(TemporalAccessor)`
460
460
  * passing `this` as the argument. Whether the value can be obtained,
@@ -496,9 +496,9 @@ export class YearQuarter extends Temporal {
496
496
  //-----------------------------------------------------------------------
497
497
  /**
498
498
  * Gets the year field.
499
- *
499
+ *
500
500
  * This method returns the primitive `int` value for the year.
501
- *
501
+ *
502
502
  * The year returned by this method is proleptic as per `get(YEAR)`.
503
503
  *
504
504
  * @return {number} the year, from MIN_YEAR to MAX_YEAR
@@ -509,7 +509,7 @@ export class YearQuarter extends Temporal {
509
509
 
510
510
  /**
511
511
  * Gets the quarter-of-year field from 1 to 4.
512
- *
512
+ *
513
513
  * This method returns the quarter as an `int` from 1 to 4.
514
514
  * Application code is frequently clearer if the enum {@link Quarter}
515
515
  * is used by calling {@link YearQuarter.getQuarter}.
@@ -523,7 +523,7 @@ export class YearQuarter extends Temporal {
523
523
 
524
524
  /**
525
525
  * Gets the quarter-of-year field using the `Quarter` enum.
526
- *
526
+ *
527
527
  * This method returns the enum {@link Quarter} for the quarter.
528
528
  * This avoids confusion as to what `int` values mean.
529
529
  * If you need access to the primitive `int` value then the enum
@@ -540,16 +540,16 @@ export class YearQuarter extends Temporal {
540
540
  /**
541
541
  * Checks if the year is a leap year, according to the ISO proleptic
542
542
  * calendar system rules.
543
- *
543
+ *
544
544
  * This method applies the current rules for leap years across the whole time-line.
545
545
  * In general, a year is a leap year if it is divisible by four without
546
546
  * remainder. However, years divisible by 100, are not leap years, with
547
547
  * the exception of years divisible by 400 which are.
548
- *
548
+ *
549
549
  * For example, 1904 is a leap year it is divisible by 4.
550
550
  * 1900 was not a leap year as it is divisible by 100, however 2000 was a
551
551
  * leap year as it is divisible by 400.
552
- *
552
+ *
553
553
  * The calculation is proleptic - applying the same rules into the far future and far past.
554
554
  * This is historically inaccurate, but is correct for the ISO-8601 standard.
555
555
  *
@@ -561,7 +561,7 @@ export class YearQuarter extends Temporal {
561
561
 
562
562
  /**
563
563
  * Checks if the day-of-quarter is valid for this year-quarter.
564
- *
564
+ *
565
565
  * This method checks whether this year and quarter and the input day form
566
566
  * a valid date.
567
567
  *
@@ -574,7 +574,7 @@ export class YearQuarter extends Temporal {
574
574
 
575
575
  /**
576
576
  * Returns the length of the quarter, taking account of the year.
577
- *
577
+ *
578
578
  * This returns the length of the quarter in days.
579
579
  *
580
580
  * @return {number} the length of the quarter in days, from 90 to 92
@@ -585,7 +585,7 @@ export class YearQuarter extends Temporal {
585
585
 
586
586
  /**
587
587
  * Returns the length of the year.
588
- *
588
+ *
589
589
  * This returns the length of the year in days, either 365 or 366.
590
590
  *
591
591
  * @return {number} 366 if the year is leap, 365 otherwise
@@ -597,19 +597,19 @@ export class YearQuarter extends Temporal {
597
597
  //-----------------------------------------------------------------------
598
598
  /**
599
599
  * Returns an adjusted copy of this year-quarter.
600
- *
600
+ *
601
601
  * This returns a {@code YearQuarter} based on this one, with the year-quarter adjusted.
602
602
  * The adjustment takes place using the specified adjuster strategy object.
603
603
  * Read the documentation of the adjuster to understand what adjustment will be made.
604
- *
604
+ *
605
605
  * A simple adjuster might simply set the one of the fields, such as the year field.
606
606
  * A more complex adjuster might set the year-quarter to the next quarter that
607
607
  * Halley's comet will pass the Earth.
608
- *
608
+ *
609
609
  * The result of this method is obtained by invoking the
610
610
  * {@link TemporalAdjuster#adjustInto(Temporal)} method on the
611
611
  * specified adjuster passing {@code this} as the argument.
612
- *
612
+ *
613
613
  * This instance is immutable and unaffected by this method call.
614
614
  *
615
615
  * @param {TemporalAdjuster} adjuster - the adjuster to use, not null
@@ -627,13 +627,13 @@ export class YearQuarter extends Temporal {
627
627
 
628
628
  /**
629
629
  * Returns a copy of this year-quarter with the specified field set to a new value.
630
- *
630
+ *
631
631
  * This returns a `YearQuarter` based on this one, with the value
632
632
  * for the specified field changed.
633
633
  * This can be used to change any supported field, such as the year or quarter.
634
634
  * If it is not possible to set the value, because the field is not supported or for
635
635
  * some other reason, an exception is thrown.
636
- *
636
+ *
637
637
  * If the field is a {@link ChronoField} then the adjustment is implemented here.
638
638
  * The supported fields behave as follows:
639
639
  * - `QUARTER_OF_YEAR` -
@@ -648,17 +648,17 @@ export class YearQuarter extends Temporal {
648
648
  * - `ERA` -
649
649
  * Returns a `YearQuarter` with the specified era.
650
650
  * The quarter and year-of-era will be unchanged.
651
- *
651
+ *
652
652
  * In all cases, if the new value is outside the valid range of values for the field
653
653
  * then a `DateTimeException` will be thrown.
654
- *
654
+ *
655
655
  * All other `ChronoField` instances will throw an `UnsupportedTemporalTypeException`.
656
- *
656
+ *
657
657
  * If the field is not a `ChronoField`, then the result of this method
658
658
  * is obtained by invoking `TemporalField.adjustInto(Temporal, long)`
659
659
  * passing `this` as the argument. In this case, the field determines
660
660
  * whether and how to adjust the instant.
661
- *
661
+ *
662
662
  * This instance is immutable and unaffected by this method call.
663
663
  *
664
664
  * @param {TemporalField} field - the field to set in the result, not null
@@ -692,7 +692,7 @@ export class YearQuarter extends Temporal {
692
692
  //-----------------------------------------------------------------------
693
693
  /**
694
694
  * Returns a copy of this `YearQuarter` with the year altered.
695
- *
695
+ *
696
696
  * This instance is immutable and unaffected by this method call.
697
697
  *
698
698
  * @param {number} year - the year to set in the returned year-quarter, from MIN_YEAR to MAX_YEAR
@@ -706,7 +706,7 @@ export class YearQuarter extends Temporal {
706
706
 
707
707
  /**
708
708
  * Returns a copy of this `YearQuarter` with the quarter-of-year altered.
709
- *
709
+ *
710
710
  * This instance is immutable and unaffected by this method call.
711
711
  *
712
712
  * @param {number} quarter - the quarter-of-year to set in the returned year-quarter, from 1 to 4
@@ -720,14 +720,14 @@ export class YearQuarter extends Temporal {
720
720
 
721
721
  /**
722
722
  * Returns a copy of this year-quarter with the specified amount added.
723
- *
723
+ *
724
724
  * This returns a `YearQuarter` based on this one, with the amount
725
725
  * in terms of the unit added. If it is not possible to add the amount, because the
726
726
  * unit is not supported or for some other reason, an exception is thrown.
727
- *
727
+ *
728
728
  * If the field is a {@link ChronoUnit} then the addition is implemented here.
729
729
  * The supported fields behave as follows:
730
- *
730
+ *
731
731
  * - `QUARTER_YEARS` -
732
732
  * Returns a `YearQuarter` with the specified number of quarters added.
733
733
  * This is equivalent to {@link YearQuarter.plusQuarters}.
@@ -751,14 +751,14 @@ export class YearQuarter extends Temporal {
751
751
  * Only two eras are supported so the amount must be one, zero or minus one.
752
752
  * If the amount is non-zero then the year is changed such that the year-of-era
753
753
  * is unchanged.
754
- *
754
+ *
755
755
  * All other `ChronoUnit` instances will throw an `UnsupportedTemporalTypeException`.
756
- *
756
+ *
757
757
  * If the field is not a `ChronoUnit`, then the result of this method
758
758
  * is obtained by invoking `TemporalUnit.addTo(Temporal, long)`
759
759
  * passing `this` as the argument. In this case, the unit determines
760
760
  * whether and how to perform the addition.
761
- *
761
+ *
762
762
  * This instance is immutable and unaffected by this method call.
763
763
  *
764
764
  * @param {number} amountToAdd - the amount of the unit to add to the result, may be negative
@@ -792,7 +792,7 @@ export class YearQuarter extends Temporal {
792
792
 
793
793
  /**
794
794
  * Returns a copy of this year-quarter with the specified period in years added.
795
- *
795
+ *
796
796
  * This instance is immutable and unaffected by this method call.
797
797
  *
798
798
  * @param {number} yearsToAdd - the years to add, may be negative
@@ -809,7 +809,7 @@ export class YearQuarter extends Temporal {
809
809
 
810
810
  /**
811
811
  * Returns a copy of this year-quarter with the specified period in quarters added.
812
- *
812
+ *
813
813
  * This instance is immutable and unaffected by this method call.
814
814
  *
815
815
  * @param {number} quartersToAdd - the quarters to add, may be negative
@@ -829,7 +829,7 @@ export class YearQuarter extends Temporal {
829
829
 
830
830
  /**
831
831
  * Returns a copy of this year-quarter with the specified period in years subtracted.
832
- *
832
+ *
833
833
  * This instance is immutable and unaffected by this method call.
834
834
  *
835
835
  * @param {number} yearsToSubtract - the years to subtract, may be negative
@@ -842,7 +842,7 @@ export class YearQuarter extends Temporal {
842
842
 
843
843
  /**
844
844
  * Returns a copy of this year-quarter with the specified period in quarters subtracted.
845
- *
845
+ *
846
846
  * This instance is immutable and unaffected by this method call.
847
847
  *
848
848
  * @param {number} quartersToSubtract - the quarters to subtract, may be negative
@@ -857,12 +857,12 @@ export class YearQuarter extends Temporal {
857
857
  //-----------------------------------------------------------------------
858
858
  /**
859
859
  * Queries this year-quarter using the specified query.
860
- *
860
+ *
861
861
  * This queries this year-quarter using the specified query strategy object.
862
862
  * The `TemporalQuery` object defines the logic to be used to
863
863
  * obtain the result. Read the documentation of the query to understand
864
864
  * what the result of this method will be.
865
- *
865
+ *
866
866
  * The result of this method is obtained by invoking the
867
867
  * {@link TemporalQuery.queryFrom} method on the
868
868
  * specified query passing `this` as the argument.
@@ -883,15 +883,15 @@ export class YearQuarter extends Temporal {
883
883
 
884
884
  /**
885
885
  * Adjusts the specified temporal object to have this year-quarter.
886
- *
886
+ *
887
887
  * This returns a temporal object of the same observable type as the input
888
888
  * with the year and quarter changed to be the same as this.
889
- *
889
+ *
890
890
  * The adjustment is equivalent to using {@link Temporal.plus}
891
891
  * passing the number of quarters to adjust by.
892
892
  * If the specified temporal object does not use the ISO calendar system then
893
893
  * a `DateTimeException` is thrown.
894
- *
894
+ *
895
895
  * In most cases, it is clearer to reverse the calling pattern by using
896
896
  * {@link Temporal.with}:
897
897
  * ```
@@ -899,7 +899,7 @@ export class YearQuarter extends Temporal {
899
899
  * temporal = thisYearQuarter.adjustInto(temporal);
900
900
  * temporal = temporal.with(thisYearQuarter);
901
901
  * ```
902
- *
902
+ *
903
903
  * This instance is immutable and unaffected by this method call.
904
904
  *
905
905
  * @param {Temporal} temporal - the target object to be adjusted, not null
@@ -919,7 +919,7 @@ export class YearQuarter extends Temporal {
919
919
 
920
920
  /**
921
921
  * Calculates the amount of time until another year-quarter in terms of the specified unit.
922
- *
922
+ *
923
923
  * This calculates the amount of time between two `YearQuarter`
924
924
  * objects in terms of a single `TemporalUnit`.
925
925
  * The start and end points are `this` and the specified year-quarter.
@@ -928,12 +928,12 @@ export class YearQuarter extends Temporal {
928
928
  * `YearQuarter` using {@link YearQuarter.from}.
929
929
  * For example, the period in years between two year-quarters can be calculated
930
930
  * using `startYearQuarter.until(endYearQuarter, YEARS)`.
931
- *
931
+ *
932
932
  * The calculation returns a whole number, representing the number of
933
933
  * complete units between the two year-quarters.
934
934
  * For example, the period in decades between 2012-Q3 and 2032-Q2
935
935
  * will only be one decade as it is one quarter short of two decades.
936
- *
936
+ *
937
937
  * There are two equivalent ways of using this method.
938
938
  * The first is to invoke this method.
939
939
  * The second is to use {@link TemporalUnit.between}:
@@ -943,17 +943,17 @@ export class YearQuarter extends Temporal {
943
943
  * amount = QUARTER_YEARS.between(start, end);
944
944
  * </pre>
945
945
  * The choice should be made based on which makes the code more readable.
946
- *
946
+ *
947
947
  * The calculation is implemented in this method for {@link ChronoUnit}.
948
948
  * The units `QUARTER_YEARS`, `YEARS`, `DECADES`,
949
949
  * `CENTURIES`, `MILLENNIA` and `ERAS` are supported.
950
950
  * Other `ChronoUnit` values will throw an exception.
951
- *
951
+ *
952
952
  * If the unit is not a `ChronoUnit`, then the result of this method
953
953
  * is obtained by invoking `TemporalUnit.between(Temporal, Temporal)`
954
954
  * passing `this` as the first argument and the converted input temporal
955
955
  * as the second argument.
956
- *
956
+ *
957
957
  * This instance is immutable and unaffected by this method call.
958
958
  *
959
959
  * @param {Temporal} endExclusive - the end date, exclusive, which is converted to a `YearQuarter`, not null
@@ -995,7 +995,7 @@ export class YearQuarter extends Temporal {
995
995
 
996
996
  /**
997
997
  * Formats this year-quarter using the specified formatter.
998
- *
998
+ *
999
999
  * This year-quarter will be passed to the formatter to produce a string.
1000
1000
  *
1001
1001
  * @param {DateTimeFormatter} formatter - the formatter to use, not null
@@ -1010,11 +1010,11 @@ export class YearQuarter extends Temporal {
1010
1010
  //-----------------------------------------------------------------------
1011
1011
  /**
1012
1012
  * Combines this year-quarter with a day-of-quarter to create a `LocalDate`.
1013
- *
1013
+ *
1014
1014
  * This returns a `LocalDate` formed from this year-quarter and the specified day-of-quarter.
1015
- *
1015
+ *
1016
1016
  * The day-of-quarter value must be valid for the year-quarter.
1017
- *
1017
+ *
1018
1018
  * This method can be used as part of a chain to produce a date:
1019
1019
  * ```
1020
1020
  * LocalDate date = yearQuarter.atDay(day);
@@ -1038,11 +1038,11 @@ export class YearQuarter extends Temporal {
1038
1038
 
1039
1039
  /**
1040
1040
  * Returns a `LocalDate` at the end of the quarter.
1041
- *
1041
+ *
1042
1042
  * This returns a `LocalDate` based on this year-quarter.
1043
1043
  * The day-of-quarter is set to the last valid day of the quarter, taking
1044
1044
  * into account leap years.
1045
- *
1045
+ *
1046
1046
  * This method can be used as part of a chain to produce a date:
1047
1047
  * ```
1048
1048
  * LocalDate date = year.atQuarter(quarter).atEndOfQuarter();
@@ -1058,7 +1058,7 @@ export class YearQuarter extends Temporal {
1058
1058
  //-----------------------------------------------------------------------
1059
1059
  /**
1060
1060
  * Compares this year-quarter to another
1061
- *
1061
+ *
1062
1062
  * The comparison is based first on the value of the year, then on the value of the quarter.
1063
1063
  * It is 'consistent with equals', as defined by {@link Comparable}.
1064
1064
  *
@@ -1098,7 +1098,7 @@ export class YearQuarter extends Temporal {
1098
1098
  //-----------------------------------------------------------------------
1099
1099
  /**
1100
1100
  * Checks if this year-quarter is equal to another year-quarter.
1101
- *
1101
+ *
1102
1102
  * The comparison is based on the time-line position of the year-quarters.
1103
1103
  *
1104
1104
  * @param {*} obj - the object to check, null returns false
@@ -1127,7 +1127,7 @@ export class YearQuarter extends Temporal {
1127
1127
  //-----------------------------------------------------------------------
1128
1128
  /**
1129
1129
  * Outputs this year-quarter as a `String`, such as `2007-Q2`.
1130
- *
1130
+ *
1131
1131
  * The output will be in the format `uuuu-'Q'Q`:
1132
1132
  *
1133
1133
  * @return {string} a string representation of this year-quarter, not null