src/share/classes/java/time/temporal/TemporalQuery.java
Print this page
@@ -96,10 +96,11 @@
* This interface places no restrictions on the mutability of implementations,
* however immutability is strongly recommended.
*
* @since 1.8
*/
+@FunctionalInterface
public interface TemporalQuery<R> {
/**
* Queries the specified temporal object.
* <p>
@@ -126,11 +127,11 @@
* It may use any method on {@code TemporalAccessor} to determine the result.
* The input object must not be altered.
* <p>
* The input temporal object may be in a calendar system other than ISO.
* Implementations may choose to document compatibility with other calendar systems,
- * or reject non-ISO temporal objects by {@link Queries#chrono() querying the chronology}.
+ * or reject non-ISO temporal objects by {@link Queries#chronology() querying the chronology}.
* <p>
* This method may be called from multiple threads in parallel.
* It must be thread-safe when invoked.
*
* @param temporal the temporal object to query, not null