📄 scheduler.html
字号:
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setDate(java.lang.String)">setDate</A></B>(java.lang.String date)</CODE>
<BR>
Sets the internal date.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setDaysToAdd(int)">setDaysToAdd</A></B>(int addDay)</CODE>
<BR>
Sets the days that will be added in a nextDate() call.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setFinalDate(java.util.Date)">setFinalDate</A></B>(java.util.Date date)</CODE>
<BR>
Sets the final date limit.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setFinalDate(java.lang.String)">setFinalDate</A></B>(java.lang.String date)</CODE>
<BR>
Sets the final date limit.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setFinalDateLimit(int, int)">setFinalDateLimit</A></B>(int day, int month)</CODE>
<BR>
Sets the final day/month limit in a year frequency.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setFinalTimeLimit(int, int)">setFinalTimeLimit</A></B>(int hour, int minute)</CODE>
<BR>
Sets the final hour:minute limit in a daily frequency.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setHoursToAdd(int)">setHoursToAdd</A></B>(int addHour)</CODE>
<BR>
Sets the hours that will be added in a nextDate() call.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setInitialDate(java.util.Date)">setInitialDate</A></B>(java.util.Date date)</CODE>
<BR>
Sets the initial date limit.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setInitialDate(java.lang.String)">setInitialDate</A></B>(java.lang.String date)</CODE>
<BR>
Sets the initial date limit.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setInitialDateLimit(int, int)">setInitialDateLimit</A></B>(int day, int month)</CODE>
<BR>
Sets the initial day/month limit in a year frequency.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setInitialTimeLimit(int, int)">setInitialTimeLimit</A></B>(int hour, int minute)</CODE>
<BR>
Sets the initial hour:minute limit in a daily frequency.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setMinutesToAdd(int)">setMinutesToAdd</A></B>(int addMinute)</CODE>
<BR>
Sets the minutes that will be added in a nextDate() call.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setMonthsToAdd(int)">setMonthsToAdd</A></B>(int addMonth)</CODE>
<BR>
Sets the months that will be added in a nextDate() call.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setWeekDay(int, int)">setWeekDay</A></B>(int weekDay, int order)</CODE>
<BR>
Sets the week day and week order constrains.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/amic/util/date/Scheduler.html#setWeeksToAdd(int)">setWeeksToAdd</A></B>(int addWeek)</CODE>
<BR>
Sets the weeks that will be added in a nextDate() call.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="MONDAY"><!-- --></A><H3>
MONDAY</H3>
<PRE>
public static int <B>MONDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="TUESDAY"><!-- --></A><H3>
TUESDAY</H3>
<PRE>
public static int <B>TUESDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="WEDNESDAY"><!-- --></A><H3>
WEDNESDAY</H3>
<PRE>
public static int <B>WEDNESDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="THURSDAY"><!-- --></A><H3>
THURSDAY</H3>
<PRE>
public static int <B>THURSDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="FRIDAY"><!-- --></A><H3>
FRIDAY</H3>
<PRE>
public static int <B>FRIDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="SATURDAY"><!-- --></A><H3>
SATURDAY</H3>
<PRE>
public static int <B>SATURDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="SUNDAY"><!-- --></A><H3>
SUNDAY</H3>
<PRE>
public static int <B>SUNDAY</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Scheduler()"><!-- --></A><H3>
Scheduler</H3>
<PRE>
public <B>Scheduler</B>()</PRE>
<DL>
<DD>Default constructor. The internal date should be set to the actual date. Same as <code>Scheduler(new Date())</code>
<P>
</DL>
<HR>
<A NAME="Scheduler(java.util.Date)"><!-- --></A><H3>
Scheduler</H3>
<PRE>
public <B>Scheduler</B>(java.util.Date date)</PRE>
<DL>
<DD>Sets the internal date <code>date</date>.
<P>
</DL>
<HR>
<A NAME="Scheduler(java.lang.String)"><!-- --></A><H3>
Scheduler</H3>
<PRE>
public <B>Scheduler</B>(java.lang.String date)</PRE>
<DL>
<DD>Sets the internal date to <code>date</date>. The string must a valid string for the CheckDate constructor.
<P>
<DT><B>See Also:</B><DD><A HREF="../../../../org/amic/util/date/CheckDate.html#CheckDate(java.lang.String)"><CODE>CheckDate.CheckDate(String date)</CODE></A></DL>
<HR>
<A NAME="Scheduler(org.amic.util.date.CheckDate)"><!-- --></A><H3>
Scheduler</H3>
<PRE>
public <B>Scheduler</B>(<A HREF="../../../../org/amic/util/date/CheckDate.html">CheckDate</A> date)</PRE>
<DL>
<DD>Sets the internal date to <code>date</date>.
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getDate()"><!-- --></A><H3>
getDate</H3>
<PRE>
public java.util.Date <B>getDate</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The internal date as a Date.</DL>
</DD>
</DL>
<HR>
<A NAME="getCalendar()"><!-- --></A><H3>
getCalendar</H3>
<PRE>
public java.util.Calendar <B>getCalendar</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The internal date as a Calendar.</DL>
</DD>
</DL>
<HR>
<A NAME="getCheckDate()"><!-- --></A><H3>
getCheckDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/CheckDate.html">CheckDate</A> <B>getCheckDate</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The internal date as a CheckDate.</DL>
</DD>
</DL>
<HR>
<A NAME="setDate(java.util.Date)"><!-- --></A><H3>
setDate</H3>
<PRE>
public void <B>setDate</B>(java.util.Date date)</PRE>
<DL>
<DD>Sets the internal date.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../org/amic/util/date/CheckDate.html#setDate(java.util.Date)"><CODE>CheckDate.setDate(Date date)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setDate(java.lang.String)"><!-- --></A><H3>
setDate</H3>
<PRE>
public void <B>setDate</B>(java.lang.String date)</PRE>
<DL>
<DD>Sets the internal date.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../org/amic/util/date/CheckDate.html#setDate(java.lang.String)"><CODE>CheckDate.setDate(String date)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="firstDate()"><!-- --></A><H3>
firstDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/Scheduler.html">Scheduler</A> <B>firstDate</B>()</PRE>
<DL>
<DD>Changes the internal date to conform the constrains imposed.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Itself, not a new instance.</DL>
</DD>
</DL>
<HR>
<A NAME="nextDate(java.util.Date)"><!-- --></A><H3>
nextDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/Scheduler.html">Scheduler</A> <B>nextDate</B>(java.util.Date now)</PRE>
<DL>
<DD>see org.amic.util.date.Scheduler#nextDate(CheckDate now)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nextDate(java.lang.String)"><!-- --></A><H3>
nextDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/Scheduler.html">Scheduler</A> <B>nextDate</B>(java.lang.String now)</PRE>
<DL>
<DD>see org.amic.util.date.Scheduler#nextDate(CheckDate now)
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nextDate(org.amic.util.date.CheckDate)"><!-- --></A><H3>
nextDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/Scheduler.html">Scheduler</A> <B>nextDate</B>(<A HREF="../../../../org/amic/util/date/CheckDate.html">CheckDate</A> now)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>now</CODE> - Executes <code>nextDate()</code> in a loop while the internal date is lower than now.<DT><B>Returns:</B><DD>Itself, not a new instance.</DL>
</DD>
</DL>
<HR>
<A NAME="nextDate()"><!-- --></A><H3>
nextDate</H3>
<PRE>
public <A HREF="../../../../org/amic/util/date/Scheduler.html">Scheduler</A> <B>nextDate</B>()</PRE>
<DL>
<DD>Adds to the internal data the fields defined by the setXXXToAdd() methods. Then apply the constrains.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Itself, not a new instance.</DL>
</DD>
</DL>
<HR>
<A NAME="isInBounds()"><!-- --></A><H3>
isInBounds</H3>
<PRE>
public boolean <B>isInBounds</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>True when the internal date is correctly bounded by <code>getInitialDate()</code> and <code>getFinalDate()</code>. The nulls in this fields are interpreted as infinities.</DL>
</DD>
</DL>
<HR>
<A NAME="isDaily()"><!-- --></A><H3>
isDaily</H3>
<PRE>
public boolean <B>isDaily</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>True when setDaysToAdd() has been called with > 0</DL>
</DD>
</DL>
<HR>
<A NAME="isWeekly()"><!-- --></A><H3>
isWeekly</H3>
<PRE>
public boolean <B>isWeekly</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>True when setWeeksToAdd() has been called with > 0</DL>
</DD>
</DL>
<HR>
<A NAME="isMonthly()"><!-- --></A><H3>
isMonthly</H3>
<PRE>
public boolean <B>isMonthly</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>True when setMonthsToAdd() has been called with > 0</DL>
</DD>
</DL>
<HR>
<A NAME="getInitialHourLimit()"><!-- --></A><H3>
getInitialHourLimit</H3>
<PRE>
public int <B>getInitialHourLimit</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The initial hour in a daily frequency.</DL>
</DD>
</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -