|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedType
uk.ac.ic.doc.automed.wrappers.AutoMedTime
public class 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, NULL_STR, STRING, TIME, TUPLE |
| Constructor Summary | |
|---|---|
AutoMedTime()
Create a new AutoMedTime that is a null value |
|
AutoMedTime(java.util.Date value,
int granularity)
Create a new AutoMedTime |
|
AutoMedTime(long time,
int granularity)
Create a new AutoMedTime, measured as the number of milliseconds since 1st January 1970, 00:00:00 GMT |
|
| Method Summary | |
|---|---|
java.util.Date |
dateValue()
|
double |
doubleValue()
Return the number of milliseconds since 1970 as a double |
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 using ISO format. |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedType |
|---|
isLiteral, isNull, isNumeric |
| 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)
public AutoMedTime()
| Method Detail |
|---|
public java.util.Date dateValue()
public java.lang.String toString()
toString in class AutoMedTypepublic double doubleValue()
doubleValue 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 | ||||||||