|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedType
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedTime
Provides generic representation of time values in GMT.
| Field Summary | |
static int |
DAY
Granularity of one day |
static int |
HOUR
Granularity of one hour |
static int |
MINUTE
Granularity of one minute |
static int |
SECOND
Granularity of one minute |
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
BOOLEAN, FLOAT, INTEGER, STRING, TIME, TUPLE |
| Constructor Summary | |
AutoMedTime(java.util.Date value,
int granularity)
Create a new AutoMedTime |
|
AutoMedTime(long time,
int granularity)
Create a new AutoMedTime, measure as the number of milliseconds since 1st January 1970, 00:00:00 GMT |
|
| Method Summary | |
java.util.Date |
dateValue()
|
boolean |
equals(AutoMedType v)
Test two AutoMedTypes for equality, performing conversions as appropriate. |
int |
getType()
Return the Type (INTEGER, TUPLE, ...) of this AutoMedType |
java.lang.String |
toString()
Return a string representation of this AutoMedTime. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int SECOND
public static final int MINUTE
public static final int HOUR
public static final int DAY
| Constructor Detail |
public AutoMedTime(long time,
int granularity)
public AutoMedTime(java.util.Date value,
int granularity)
| Method Detail |
public java.util.Date dateValue()
public java.lang.String toString()
toString in class AutoMedTypepublic boolean equals(AutoMedType v)
AutoMedType
equals in class AutoMedTypepublic final int getType()
AutoMedType
getType in class AutoMedType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||