ch.ethz.mxquery.datamodel
Class MXQueryGregorian
java.lang.Object
ch.ethz.mxquery.datamodel.MXQueryGregorian
public class MXQueryGregorian
- extends java.lang.Object
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
MXQueryGregorian
public MXQueryGregorian(int year,
int month,
int day,
int tzMinutes,
int type)
throws MXQueryException
- Throws:
MXQueryException
MXQueryGregorian
public MXQueryGregorian(java.lang.String s,
int type)
throws MXQueryException
- Throws:
MXQueryException
hasTimezone
public final boolean hasTimezone()
getDay
public int getDay()
getMonth
public int getMonth()
getType
public int getType()
getTzMin
public int getTzMin()
getYear
public int getYear()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(MXQueryGregorian g)
- Compares too Gregorian values of the same type
- Parameters:
g
- - Gregorian value to compare with
- Returns:
- true if the values are equal
compareTo
public int compareTo(MXQueryGregorian arg)
throws MXQueryException
- Compares too Gregorian values of the same type
- Parameters:
arg
- - Gregorian value to compare with
- Returns:
- 0 if the argument Gregorian is equal to this Gregorian
ONLY FOR EQ/NEQ COMPARISON
- Throws:
MXQueryException
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich