< prev index next >

src/java.base/share/classes/java/time/temporal/TemporalAccessor.java

Print this page

        

*** 142,152 **** * Implementations must check and handle all fields defined in {@link ChronoField}. * If the field is supported, then the range of the field must be returned. * If unsupported, then an {@code UnsupportedTemporalTypeException} must be thrown. * <p> * If the field is not a {@code ChronoField}, then the result of this method ! * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessorl)} * passing {@code this} as the argument. * <p> * Implementations must ensure that no observable state is altered when this * read-only method is invoked. * <p> --- 142,152 ---- * Implementations must check and handle all fields defined in {@link ChronoField}. * If the field is supported, then the range of the field must be returned. * If unsupported, then an {@code UnsupportedTemporalTypeException} must be thrown. * <p> * If the field is not a {@code ChronoField}, then the result of this method ! * is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)} * passing {@code this} as the argument. * <p> * Implementations must ensure that no observable state is altered when this * read-only method is invoked. * <p>
< prev index next >