MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Class MXQueryYearMonthDuration

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.MXQueryYearMonthDuration

public class MXQueryYearMonthDuration
extends java.lang.Object


Constructor Summary
MXQueryYearMonthDuration()
           
MXQueryYearMonthDuration(java.lang.String input)
           
 
Method Summary
 MXQueryYearMonthDuration add(MXQueryYearMonthDuration d)
           
 int compareTo(MXQueryYearMonthDuration arg)
          Compares 2 YearMonthDuration values
 MXQueryYearMonthDuration divide(MXQueryDouble d)
           
 MXQueryNumber divide(MXQueryYearMonthDuration d)
           
 boolean equals(MXQueryYearMonthDuration d)
           
 boolean equals(java.lang.Object o)
          operators
 int getMonths()
           
 int getNegative()
           
 int getYears()
           
 int hashCode()
           
 boolean isNull()
          Returns true if all values are 0
 MXQueryYearMonthDuration multiply(MXQueryDouble d)
           
 MXQueryYearMonthDuration subtract(MXQueryYearMonthDuration d)
           
 java.lang.String toString()
           
 boolean unequals(MXQueryYearMonthDuration d)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MXQueryYearMonthDuration

public MXQueryYearMonthDuration()

MXQueryYearMonthDuration

public MXQueryYearMonthDuration(java.lang.String input)
                         throws MXQueryException
Throws:
MXQueryException
Method Detail

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

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich