📄 repeatrule.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#RepeatRule()">RepeatRule</A></B>()</CODE>
<BR>
Default
constructor.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#ccccff" CLASS="TableHeadingColor">
<TD COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></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="../../../javax/microedition/pim/RepeatRule.html#addExceptDate(long)">addExceptDate</A></B>(long date)</CODE>
<BR>
Add a Date for
which this RepeatRule should not occur.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#dates(long, long, long)">dates</A></B>(long startDate,
long subsetBeginning, long subsetEnding)</CODE>
<BR>
Returns an
Enumeration of dates on which an Event would occur.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</CODE>
<BR>
Compares this
RepeatRule with a given RepeatRule for content equality.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getDate(int)">getDate</A></B>(int field)</CODE>
<BR>
Retrieves a Date
field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getExceptDates()">getExceptDates</A></B>()</CODE>
<BR>
Returns the Dates
for which this RepeatRule should not occur.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getFields()">getFields</A></B>()</CODE>
<BR>
Returns a list of
fields that currently have values assigned to it.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/microedition/pim/RepeatRule.html#getInt(int)">getInt</A></B>(int field)</CODE>
<BR>
Retrieves an
integer field.</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="../../../javax/microedition/pim/RepeatRule.html#removeExceptDate(long)">removeExceptDate</A></B>(long date)</CODE>
<BR>
Remove a Date for
which this RepeatRule should not occur.</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="../../../javax/microedition/pim/RepeatRule.html#setDate(int, long)">setDate</A></B>(int field,
long value)</CODE>
<BR>
Sets a Date field.</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="../../../javax/microedition/pim/RepeatRule.html#setInt(int, int)">setInt</A></B>(int field,
int value)</CODE>
<BR>
Sets an integer
field.</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>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="FREQUENCY"><!-- --></A><H3>
FREQUENCY</H3>
<PRE>
public static final int <B>FREQUENCY</B></PRE>
<DL>
<DD>
Field specifying the frequency of the Repeat. This field has a value of either <code>
DAILY</code>, <code>WEEKLY</code>, <code>MONTHLY</code> or <code>YEARLY</code>.
The default data value associated with this field in RepeatRule is <code>DAILY</code>.
This field can be checked for support by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.FREQUENCY">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="DAY_IN_MONTH"><!-- --></A><H3>
DAY_IN_MONTH</H3>
<PRE>
public static final int <B>DAY_IN_MONTH</B></PRE>
<DL>
<DD>
Field specifying the day of the month an Event occurs; for example, 15. This
value is 1 based from the first day of the month. This field can be checked for
support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_MONTH">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="DAY_IN_WEEK"><!-- --></A><H3>
DAY_IN_WEEK</H3>
<PRE>
public static final int <B>DAY_IN_WEEK</B></PRE>
<DL>
<DD>
Field specifying the days of the week an Event occurs. To set multiple days, OR
the values together (e.g. <code>MONDAY | THURSDAY</code>). Retrieval of data
for this field can contain multiple days OR'd together in the same manner as
setting the value. This field can be checked for support in the bit array
values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_WEEK">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="DAY_IN_YEAR"><!-- --></A><H3>
DAY_IN_YEAR</H3>
<PRE>
public static final int <B>DAY_IN_YEAR</B></PRE>
<DL>
<DD>
Field specifying the day of the year an Event occurs; for example, 134. This
value is 1 based from the first day of the beginning of the year. This field
can be checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAY_IN_YEAR">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="MONTH_IN_YEAR"><!-- --></A><H3>
MONTH_IN_YEAR</H3>
<PRE>
public static final int <B>MONTH_IN_YEAR</B></PRE>
<DL>
<DD>
Field specifying the month in which an event occurs. To set multiple months, OR
the values together (e.g. <code>RepeatRule.JANUARY | RepeatRule.FEBRUARY </code>
). Retrieval of data for this field can contain multiple months OR'd together
in the same manner as setting the value. This field can be checked for support
in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.MONTH_IN_YEAR">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="WEEK_IN_MONTH"><!-- --></A><H3>
WEEK_IN_MONTH</H3>
<PRE>
public static final int <B>WEEK_IN_MONTH</B></PRE>
<DL>
<DD>
Field specifying which week in a month a particular event occurs. To set
multiple weeks, OR the values together (e.g. <code>FIRST | LAST | SECOND |
SECONDLAST</code>). Retrieval of data for this field can contain multiple
weeks OR'd together in the same manner as setting the value. This field can be
checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.WEEK_IN_MONTH">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="COUNT"><!-- --></A><H3>
COUNT</H3>
<PRE>
public static final int <B>COUNT</B></PRE>
<DL>
<DD>
Field specifying the number of times this event repeats including the first
time, starting from the first time the event starts (derived from <code>Event.START</code>)
and continuing to the last date of the repeat (defined by <code>RepeatRule.END</code>).
<code>COUNT</code> controls the number of times the event occurs during the
period and is used with RepeatRule interval and the frequency to calculate when
the event occurs. <code>RepeatRule.END</code> overrides this data if the end is
reached prior to the count finishing. If <CODE>COUNT</CODE> is 0 and <CODE>END</CODE>
is <code>null</code>, the event repeats forever. This field can be checked for
support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.COUNT">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="END"><!-- --></A><H3>
END</H3>
<PRE>
public static final int <B>END</B></PRE>
<DL>
<DD>
Field specifying the ending date of the repeating event. Data for this field is
expressed in the same long value format as java.util.Date, which is
milliseconds since the epoch (00:00:00 GMT, January 1, 1970). This field can be
checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.END">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="INTERVAL"><!-- --></A><H3>
INTERVAL</H3>
<PRE>
public static final int <B>INTERVAL</B></PRE>
<DL>
<DD>
Field specifying the number of iterations of the frequency between occurring
dates, or how often the frequency repeats. For example, for every other day the <code>
FREQUENCY</code> is <code>DAILY</code> and <code>INTERVAL</code> is 2. The
default value for data associated with this field is 1. This field can be
checked for support in the bit array values returned by <A HREF="../../../javax/microedition/pim/EventList.html#getSupportedRepeatRuleFields(int)">
<CODE>EventList.getSupportedRepeatRuleFields(int)</CODE></A>.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.INTERVAL">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="DAILY"><!-- --></A><H3>
DAILY</H3>
<PRE>
public static final int <B>DAILY</B></PRE>
<DL>
<DD>
Used for frequency when the Event happens every day.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.microedition.pim.RepeatRule.DAILY">Constant
Field Values</A></DD></DL>
</DD>
</DL>
<HR>
<A NAME="WEEKLY"><!-- --></A><H3>
WEEKLY</H3>
<PRE>
public static final int <B>WEEKLY</B></PRE>
<DL>
<DD>
Used for frequency when the Event happens every week.
<P>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -