jdk/src/share/classes/java/time/temporal/TemporalField.java
changeset 17474 8c100beabcc0
parent 16852 60207b2b4b42
child 19030 32f129cb6351
equal deleted inserted replaced
17473:35cd9b3a98ff 17474:8c100beabcc0
    80  * The field works using double dispatch. Client code calls methods on a date-time like
    80  * The field works using double dispatch. Client code calls methods on a date-time like
    81  * {@code LocalDateTime} which check if the field is a {@code ChronoField}.
    81  * {@code LocalDateTime} which check if the field is a {@code ChronoField}.
    82  * If it is, then the date-time must handle it.
    82  * If it is, then the date-time must handle it.
    83  * Otherwise, the method call is re-dispatched to the matching method in this interface.
    83  * Otherwise, the method call is re-dispatched to the matching method in this interface.
    84  *
    84  *
    85  * <h3>Specification for implementors</h3>
    85  * @implSpec
    86  * This interface must be implemented with care to ensure other classes operate correctly.
    86  * This interface must be implemented with care to ensure other classes operate correctly.
    87  * All implementations that can be instantiated must be final, immutable and thread-safe.
    87  * All implementations that can be instantiated must be final, immutable and thread-safe.
    88  * Implementations should be {@code Serializable} where possible.
    88  * Implementations should be {@code Serializable} where possible.
    89  * An enum is as effective implementation choice.
    89  * An enum is as effective implementation choice.
    90  *
    90  *