Package com.jalios.jdring
Class Schedule
- java.lang.Object
-
- com.jalios.jdring.Schedule
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<java.lang.Object>
public class Schedule extends java.lang.Object implements java.lang.Comparable<java.lang.Object>, java.io.Serializable
Schedule abstraction and parse/format static method- Since:
- JCMS 6.3
- Author:
- Ludovic SMADJA
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
SVN REVISION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
SVN REVISION- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Schedule
public Schedule()
-
Schedule
public Schedule(int minute, int hour, int dayOfMonth, int month, int dayOfWeek, int year)
Default Constructor- Parameters:
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 year
-
-
Method Detail
-
getMinute
public int getMinute()
- Returns:
- the minute
-
setMinute
public void setMinute(int minute)
- Parameters:
minute
- the minute to set
-
getHour
public int getHour()
- Returns:
- the hour
-
setHour
public void setHour(int hour)
- Parameters:
hour
- the hour to set
-
getDayOfMonth
public int getDayOfMonth()
- Returns:
- the dayOfMonth
-
setDayOfMonth
public void setDayOfMonth(int dayOfMonth)
- Parameters:
dayOfMonth
- the dayOfMonth to set
-
getMonth
public int getMonth()
- Returns:
- the month
-
setMonth
public void setMonth(int month)
- Parameters:
month
- the month to set
-
getDayOfWeek
public int getDayOfWeek()
- Returns:
- the dayOfWeek
-
setDayOfWeek
public void setDayOfWeek(int dayOfWeek)
- Parameters:
dayOfWeek
- the dayOfWeek to set
-
getYear
public int getYear()
- Returns:
- the year
-
setYear
public void setYear(int year)
- Parameters:
year
- the year to set
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
format
public java.lang.String format()
Returns the formated string (minute hour dayOfMonth month dayOfWeek year)- Returns:
- the formated string (minute hour dayOfMonth month dayOfWeek year)
-
compareTo
public int compareTo(java.lang.Object obj)
- Specified by:
compareTo
in interfacejava.lang.Comparable<java.lang.Object>
-
parse
public static Schedule parse(java.lang.String str) throws java.text.ParseException
- Throws:
java.text.ParseException
-
-