jdk/src/share/classes/java/time/temporal/TemporalUnit.java
changeset 24256 da9a41004459
parent 20520 0952771e3e25
equal deleted inserted replaced
24255:91f5e4399160 24256:da9a41004459
   219      *
   219      *
   220      * @param <R>  the type of the Temporal object
   220      * @param <R>  the type of the Temporal object
   221      * @param temporal  the temporal object to adjust, not null
   221      * @param temporal  the temporal object to adjust, not null
   222      * @param amount  the amount of this unit to add, positive or negative
   222      * @param amount  the amount of this unit to add, positive or negative
   223      * @return the adjusted temporal object, not null
   223      * @return the adjusted temporal object, not null
   224      * @throws DateTimeException if the period cannot be added
   224      * @throws DateTimeException if the amount cannot be added
   225      * @throws UnsupportedTemporalTypeException if the unit is not supported by the temporal
   225      * @throws UnsupportedTemporalTypeException if the unit is not supported by the temporal
   226      */
   226      */
   227     <R extends Temporal> R addTo(R temporal, long amount);
   227     <R extends Temporal> R addTo(R temporal, long amount);
   228 
   228 
   229     //-----------------------------------------------------------------------
   229     //-----------------------------------------------------------------------