Package com.jalios.jdring
Class Schedule
java.lang.Object
com.jalios.jdring.Schedule
- All Implemented Interfaces:
Serializable,Comparable<Object>
Schedule abstraction and parse/format static method
- Since:
- JCMS 6.3
- Author:
- Ludovic SMADJA
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanformat()Returns the formated string (minute hour dayOfMonth month dayOfWeek year)intintintgetHour()intintgetMonth()intgetYear()static SchedulevoidsetDayOfMonth(int dayOfMonth) voidsetDayOfWeek(int dayOfWeek) voidsetHour(int hour) voidsetMinute(int minute) voidsetMonth(int month) voidsetYear(int year) toString()
-
Constructor Details
-
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 Details
-
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
-
toString
-
format
Returns the formated string (minute hour dayOfMonth month dayOfWeek year)- Returns:
- the formated string (minute hour dayOfMonth month dayOfWeek year)
-
compareTo
- Specified by:
compareToin interfaceComparable<Object>
-
parse
- Throws:
ParseException
-