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

    @Override
    public int compareTo(Duration o)
    {
        return inReferenceUnits(o.getReferenceUnits()).compareTo(o.inReferenceUnits());
    }

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

}