javax.xml.datatype.DatatypeFactory class has a bundle of factory methods creating Duration class object:
- newDuration
- newDurationDayTime
- newDurationYearMonth
Some factory methods may throw IllegalArgumentException.
All incorrect input parameters should be described in javadoc if IllegalArgumentException should be thrown. For example it should be described that negative values for year or month in newDurationYearMonth(boolean, int, int) cause IllegalArgumentException.
###@###.### 2005-03-09 16:24:16 GMT
- newDuration
- newDurationDayTime
- newDurationYearMonth
Some factory methods may throw IllegalArgumentException.
All incorrect input parameters should be described in javadoc if IllegalArgumentException should be thrown. For example it should be described that negative values for year or month in newDurationYearMonth(boolean, int, int) cause IllegalArgumentException.
###@###.### 2005-03-09 16:24:16 GMT