ch.ethz.mxquery.datamodel
Class MXQueryYearMonthDuration
java.lang.Object
ch.ethz.mxquery.datamodel.MXQueryYearMonthDuration
public class MXQueryYearMonthDuration
- extends java.lang.Object
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
MXQueryYearMonthDuration
public MXQueryYearMonthDuration()
MXQueryYearMonthDuration
public MXQueryYearMonthDuration(java.lang.String input)
throws MXQueryException
- Throws:
MXQueryException
getYears
public int getYears()
getMonths
public int getMonths()
getNegative
public int getNegative()
isNull
public boolean isNull()
- Returns true if all values are 0
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- operators
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(MXQueryYearMonthDuration d)
unequals
public boolean unequals(MXQueryYearMonthDuration d)
compareTo
public int compareTo(MXQueryYearMonthDuration arg)
- Compares 2 YearMonthDuration values
- Parameters:
arg
- - YearMonthDuration values to compare with
- Returns:
- 0 if the argument YearMonthDuration is equal to this YearMonthDuration
-1 if this YearMonthDuration is less than YearMonthDuration argument
1 if this YearMonthDuration is greater than YearMonthDuration argument
add
public MXQueryYearMonthDuration add(MXQueryYearMonthDuration d)
subtract
public MXQueryYearMonthDuration subtract(MXQueryYearMonthDuration d)
multiply
public MXQueryYearMonthDuration multiply(MXQueryDouble d)
throws MXQueryException
- Throws:
MXQueryException
divide
public MXQueryNumber divide(MXQueryYearMonthDuration d)
throws MXQueryException
- Throws:
MXQueryException
divide
public MXQueryYearMonthDuration divide(MXQueryDouble d)
throws MXQueryException
- Throws:
MXQueryException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich