|
BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Date | +--com.bea.ales.EntitlementQuery.common.Time
Used to represent ALES time values.
This class extends java.util.Date
but only the time portion is utilized.
java.util.Date
can be used directly to specify ALES date values, but the time portion will not be utilized.
Constructor Summary | |
Time()
Constructs a Time object with the current time. |
|
Time(java.util.Date date)
Constructs a Time object with the specified time. |
|
Time(long time)
Constructs a Time object with the specified time. |
Method Summary | |
boolean |
after(java.util.Date when)
Compares a java Date object to this Time object. |
boolean |
before(java.util.Date when)
Compares a java Date object to this Time object. |
int |
compareTo(java.util.Date when)
Compares a java Date object to this Time object. |
int |
compareTo(Time when)
Compares a java Date object to this Time object. |
boolean |
equals(java.lang.Object othat)
|
void |
setTime(long time)
Sets the time. |
java.lang.String |
toString()
Returns the time as a string in ALES time format. |
Methods inherited from class java.util.Date |
clone,
compareTo,
getDate,
getDay,
getHours,
getMinutes,
getMonth,
getSeconds,
getTime,
getTimezoneOffset,
getYear,
hashCode,
parse,
setDate,
setHours,
setMinutes,
setMonth,
setSeconds,
setYear,
toGMTString,
toLocaleString,
UTC |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Time()
public Time(long time)
time
- seconds since epoch, January 1, 1970, 00:00:00 GMTpublic Time(java.util.Date date)
date
- the Java time value to copy the time from, date information will not be copiedMethod Detail |
public void setTime(long time)
time
- second since epoch, January 1, 1970, 00:00:00 GMTpublic boolean after(java.util.Date when)
when
- time to compare against.true
this is after when
public boolean before(java.util.Date when)
when
- time to compare against.true
this is before when
public int compareTo(java.util.Date when)
when
- time to compare against.public int compareTo(Time when)
when
- time to compare against.public java.lang.String toString()
public boolean equals(java.lang.Object othat)
|
Documentation is available at http://edocs.bea.com/ales/docs30 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |