[threeten-dev] Rough draft of TemporalAmount

Roger Riggs Roger.Riggs at oracle.com
Thu Jan 24 15:03:27 PST 2013


Here's a rough draft of the java.time.temporal.TemporalAmount interface 
to unify
Duration, Period, and SimplePeriod. It replaces TemporalAdder and 
TemporalSubtractor.
The Temporal.plus and minus methods are modified to accept a TemporalAmount.

The prose javadoc will need some elaboration in spots.

Javadoc:
   http://cr.openjdk.java.net/~rriggs/javadoc-temporalamount/

Webrev:
   http://cr.openjdk.java.net/~rriggs/webrev-temporalamount/

-- 
Thanks, Roger

Oracle Java Platform Group

Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment



More information about the threeten-dev mailing list