class Duration implements Cloneable, Serializable, Comparable<Duration>, JAXBable<JAXBDuration> {

    public int intValue()
    {
        BigDecimal mag = getMagnitude();
        if (!isInIntRange(mag))
        {
            throw new ArithmeticException("Magnitude [" + mag + "] is out of integer range.");
        }
        return mag.intValue();
    }

    public  Duration(BigDecimal magnitude);
    protected  Duration(long unscaledMagnitude, int scale);

}