diff --git a/src/main/java/org/threeten/extra/AmPm.java b/src/main/java/org/threeten/extra/AmPm.java index 5437c18b..8132950f 100644 --- a/src/main/java/org/threeten/extra/AmPm.java +++ b/src/main/java/org/threeten/extra/AmPm.java @@ -310,14 +310,9 @@ public long getLong(TemporalField field) { /** * Queries this am-pm using the specified query. *
- * This queries this am-pm using the specified query strategy object. - * The {@code TemporalQuery} object defines the logic to be used to - * obtain the result. Read the documentation of the query to understand - * what the result of this method will be. - *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#precision()} is directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
- * This queries this day-of-month using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
- * This method checks whether this day-of-yearand the input year form
+ * This method checks whether this day-of-year and the input year form
* a valid date. This can only return false for day-of-year 366.
*
* @param year the year to validate
@@ -364,14 +365,9 @@ public boolean isValidYear(int year) {
/**
* Queries this day-of-year using the specified query.
*
- * This queries this day-of-year using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
* This returns the textual name used to identify the half-of-year,
* suitable for presentation to the user.
@@ -362,7 +362,7 @@ public Half minus(long halves) {
* H2 has 184 days.
*
* @param leapYear true if the length is required for a leap year
- * @return the length of this month in days, 181, 182 or 184
+ * @return the length of this half in days, 181, 182 or 184
*/
public int length(boolean leapYear) {
return this == H1 ? (leapYear ? 182 : 181) : 184;
@@ -385,14 +385,9 @@ public Month firstMonth() {
/**
* Queries this half-of-year using the specified query.
*
- * This queries this half-of-year using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
* If the field is a {@link ChronoField} then the query is implemented here.
* The {@link #isSupported(TemporalField) supported fields} will return valid
- * values based on this hour-minute,.
+ * values based on this hour-minute.
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
*
* If the field is not a {@code ChronoField}, then the result of this method
@@ -674,13 +674,13 @@ public HourMinute plus(TemporalAmount amountToAdd) {
* The supported fields behave as follows:
*
- * This queries this hour-minute using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#localTime()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
- * This queries this date using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#localDate()}, {@link TemporalQueries#chronology()}, {@link TemporalQueries#offset()},
+ * {@link TemporalQueries#zone()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
- * This queries this quarter-of-year using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
* The string must represent a valid year-half.
- * The format must be {@code uuuu-'Q'Q} where the 'Q' is case insensitive.
+ * The format must be {@code uuuu-'H'H} where the 'H' is case insensitive.
* Years outside the range 0000 to 9999 must be prefixed by the plus or minus symbol.
*
* @param text the text to parse such as "2007-H2", not null
@@ -452,7 +452,7 @@ public ValueRange range(TemporalField field) {
*
* If the field is a {@link ChronoField} then the query is implemented here.
* The {@link #isSupported(TemporalField) supported fields} will return valid
- * values based on this year-half,.
+ * values based on this year-half.
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
*
* If the field is not a {@code ChronoField}, then the result of this method
@@ -974,14 +974,9 @@ public YearHalf minusHalves(long halvesToSubtract) {
/**
* Queries this year-half using the specified query.
*
- * This queries this year-half using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
* If the field is a {@link ChronoField} then the query is implemented here.
* The {@link #isSupported(TemporalField) supported fields} will return valid
- * values based on this year-quarter,.
+ * values based on this year-quarter.
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
*
* If the field is not a {@code ChronoField}, then the result of this method
@@ -975,14 +975,9 @@ public YearQuarter minusQuarters(long quartersToSubtract) {
/**
* Queries this year-quarter using the specified query.
*
- * This queries this year-quarter using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
- * This queries this year-week using the specified query strategy object.
- * The {@code TemporalQuery} object defines the logic to be used to
- * obtain the result. Read the documentation of the query to understand
- * what the result of this method will be.
- *
- * The result of this method is obtained by invoking the
- * {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
- * specified query passing {@code this} as the argument.
+ * {@link TemporalQueries#chronology()} and {@link TemporalQueries#precision()} are directly supported.
+ * Otherwise, the result of this method is obtained by invoking
+ * {@link TemporalAccessor#query(TemporalQuery)} on the parent interface.
*
* @param
*
@@ -842,14 +842,9 @@ public HourMinute minusMinutes(long minutesToSubtract) {
/**
* Queries this hour-minute using the specified query.
*