org.jbind.xml.instance.data
Class Duration
java.lang.Object
org.jbind.xml.instance.data.Duration
- All Implemented Interfaces:
- IDuration, IDurationBase, java.io.Serializable
- public class Duration
- extends java.lang.Object
- implements IDuration
- See Also:
- Serialized Form
Constructor Summary |
Duration(int aSign,
int aYears,
int aMonths,
int aDays,
int anHours,
int aMinutes,
int aSeconds,
java.math.BigDecimal aFraction)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Duration
public Duration(int aSign,
int aYears,
int aMonths,
int aDays,
int anHours,
int aMinutes,
int aSeconds,
java.math.BigDecimal aFraction)
getDays
public int getDays()
- Specified by:
getDays
in interface IDurationBase
getFraction
public java.math.BigDecimal getFraction()
- Specified by:
getFraction
in interface IDurationBase
getHours
public int getHours()
- Specified by:
getHours
in interface IDurationBase
getMinutes
public int getMinutes()
- Specified by:
getMinutes
in interface IDurationBase
getMonths
public int getMonths()
- Specified by:
getMonths
in interface IDurationBase
getSeconds
public int getSeconds()
- Specified by:
getSeconds
in interface IDurationBase
getSign
public int getSign()
- Specified by:
getSign
in interface IDurationBase
getYears
public int getYears()
- Specified by:
getYears
in interface IDurationBase
equals
public boolean equals(java.lang.Object anObject)
hashCode
public int hashCode()
compareTo
public CompareResult compareTo(IDuration aDuration)
- Specified by:
compareTo
in interface IDuration
toString
public java.lang.String toString()