|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.data.TimePeriod
com.jrefinery.data.Minute
public class Minute
Represents a minute.
This class is immutable, which is a requirement for all TimePeriod subclasses.
| Field Summary | |
|---|---|
protected Hour |
hour
The hour in which the minute falls. |
| Fields inherited from class com.jrefinery.data.TimePeriod |
|---|
DEFAULT_TIME_ZONE, WORKING_CALENDAR |
| Fields inherited from interface com.jrefinery.date.MonthConstants |
|---|
APRIL, AUGUST, DECEMBER, FEBRUARY, JANUARY, JULY, JUNE, MARCH, MAY, NOVEMBER, OCTOBER, SEPTEMBER |
| Constructor Summary | |
|---|---|
Minute()
Constructs a new Minute, based on the system date/time. |
|
Minute(java.util.Date time)
Constructs a new Minute, based on the supplied date/time. |
|
Minute(java.util.Date time,
java.util.TimeZone zone)
|
|
Minute(int minute,
Hour hour)
Constructs a new Minute. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o1)
Returns an integer indicating the order of this Minute object relative to the specified object: negative == before, zero == same, positive == after. |
boolean |
equals(java.lang.Object object)
Tests the equality of this object against an arbitrary Object. |
long |
getEnd(java.util.Calendar calendar)
Returns the last millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone). |
Hour |
getHour()
Returns the day in which this minute falls. |
int |
getMinute()
Returns the minute. |
long |
getStart(java.util.Calendar calendar)
Returns the first millisecond of the time period, evaluated using the supplied calendar (which incorporates a timezone). |
static void |
main(java.lang.String[] args)
Test code - please ignore. |
TimePeriod |
next()
Returns the minute following this one. |
static Minute |
parseMinute(java.lang.String s)
Creates a Minute instance by parsing a string. |
TimePeriod |
previous()
Returns the minute preceding this one. |
| Methods inherited from class com.jrefinery.data.TimePeriod |
|---|
getEnd, getEnd, getMiddle, getMiddle, getMiddle, getStart, getStart |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Hour hour
| Constructor Detail |
|---|
public Minute()
public Minute(int minute,
Hour hour)
minute - The minute (0 to 59).day - The day.public Minute(java.util.Date time)
time - The time.
public Minute(java.util.Date time,
java.util.TimeZone zone)
| Method Detail |
|---|
public Hour getHour()
public int getMinute()
public TimePeriod previous()
previous in class TimePeriodpublic TimePeriod next()
next in class TimePeriodpublic boolean equals(java.lang.Object object)
This method will return true ONLY if the object is a Minute object representing the same minute as this instance.
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o1)
public long getStart(java.util.Calendar calendar)
TimePeriod
getStart in class TimePeriodcalendar - The calendar.
public long getEnd(java.util.Calendar calendar)
TimePeriod
getEnd in class TimePeriodcalendar - The calendar.
public static Minute parseMinute(java.lang.String s)
public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||