public class Schedule
extends java.lang.Object
implements java.lang.Comparable<java.lang.Object>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION
SVN REVISION
|
Constructor and Description |
---|
Schedule() |
Schedule(int minute,
int hour,
int dayOfMonth,
int month,
int dayOfWeek,
int year)
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object obj) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
format()
Returns the formated string (minute hour dayOfMonth month dayOfWeek year)
|
int |
getDayOfMonth() |
int |
getDayOfWeek() |
int |
getHour() |
int |
getMinute() |
int |
getMonth() |
int |
getYear() |
static Schedule |
parse(java.lang.String str) |
void |
setDayOfMonth(int dayOfMonth) |
void |
setDayOfWeek(int dayOfWeek) |
void |
setHour(int hour) |
void |
setMinute(int minute) |
void |
setMonth(int month) |
void |
setYear(int year) |
java.lang.String |
toString() |
public static final java.lang.String REVISION
public Schedule()
public Schedule(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
minute
- -1 indicates every minuteshour
- -1 indicates every hoursdayOfMonth
- -1 indicates every day of monthmonth
- -1 indicates every monthdayOfWeek
- -1 indicates every day of weekyear
- -1 indicates every yearpublic int getMinute()
public void setMinute(int minute)
minute
- the minute to setpublic int getHour()
public void setHour(int hour)
hour
- the hour to setpublic int getDayOfMonth()
public void setDayOfMonth(int dayOfMonth)
dayOfMonth
- the dayOfMonth to setpublic int getMonth()
public void setMonth(int month)
month
- the month to setpublic int getDayOfWeek()
public void setDayOfWeek(int dayOfWeek)
dayOfWeek
- the dayOfWeek to setpublic int getYear()
public void setYear(int year)
year
- the year to setpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String format()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public static Schedule parse(java.lang.String str) throws java.text.ParseException
java.text.ParseException
Copyright © 2001-2010 Jalios SA. All Rights Reserved.