Adam Heath wrote:
The javadoc for org.ofbiz.base.util.TimeDuration says it is immutable;
however, it's fields are not final, and lots of methods modify it's
fields.

The methods that modify fields are directly or indirectly called by the constructor and are protected. Let me know if any public method modifies a field.

Was there any research into other duration implementations?  I see one
at javax.xml.datatype.Duration, that seems mostly compatible, except
that it doesn't have millisecond resolution.

I spent some time Googling publicly available JavaDocs and got the basic idea from what I found.

Reply via email to