📄 resultsetimpl.html
字号:
int maxAmount)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getAfter(java.lang.String, int)">ResultSet</A></CODE></B></DD><DD>Returns a List of results starting with the first result after the result that's identified by the provided UID (the returned List is exclusive). The lenght of the list is equal to 'maxAmount', unless there are no more elements available (in which case the length of the result will be truncated).<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getAfter(java.lang.String, int)">getAfter</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>uid</CODE> - The UID of the element that is right before the first element in the result.<DD><CODE>maxAmount</CODE> - The maximum number of elements to return.<DT><B>Returns:</B><DD>A List of elements the are exactly after the element that is provided as a parameter.</DL></DD></DL><HR><A NAME="getBefore(java.lang.String, int)"><!-- --></A><H3>getBefore</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A>> <B>getBefore</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> uid, int maxAmount)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getBefore(java.lang.String, int)">ResultSet</A></CODE></B></DD><DD>Returns a list of results ending with the element right before the element identified by the provided UID (the returned List is exclusive). At most 'maxAmount' elements are in the returned List, but the lenght of the result might be smaller if no more applicable elements are available. Note that the order of the result is equal to the order of the results of other methods of this class: the last element in the returned List immediately preceeds the element denoted by the 'result' parameter.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getBefore(java.lang.String, int)">getBefore</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>uid</CODE> - The UID of the element preceding the last element returned by this function.<DD><CODE>maxAmount</CODE> - The length of the List that is being returned.<DT><B>Returns:</B><DD>A List of elements that are exactly before the element that's provided as a parameter.</DL></DD></DL><HR><A NAME="get(int)"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> <B>get</B>(int index)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#get(int)">ResultSet</A></CODE></B></DD><DD>Returns the element denoted by the index.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#get(int)">get</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Index of the element to be returned<DT><B>Returns:</B><DD>the Element at 'index'.</DL></DD></DL><HR><A NAME="getFirst(int)"><!-- --></A><H3>getFirst</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A>> <B>getFirst</B>(int maxAmount)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getFirst(int)">ResultSet</A></CODE></B></DD><DD>Returns the first elements from this result set.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getFirst(int)">getFirst</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxAmount</CODE> - the number of elements to return.<DT><B>Returns:</B><DD>the last 'maxAmount' elements of this result set.</DL></DD></DL><HR><A NAME="getLast(int)"><!-- --></A><H3>getLast</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A>> <B>getLast</B>(int maxAmount)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getLast(int)">ResultSet</A></CODE></B></DD><DD>Returns the last elements from this result set.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#getLast(int)">getLast</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxAmount</CODE> - the number of elements to return.<DT><B>Returns:</B><DD>the last 'maxAmount' elements of this result set.</DL></DD></DL><HR><A NAME="get(int, int)"><!-- --></A><H3>get</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A>> <B>get</B>(int fromIndex, int maxAmount)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#get(int, int)">ResultSet</A></CODE></B></DD><DD>Returns a list of results, starting with the result that's at the specified index. If the difference between the startIndex and the index of the last element in the entire resultset is smaller than the size supplied in the 'amount' parameter, the length of the returned list will be smaller than the 'amount' paramater. If the supplied index is equal to, or larger than the size of the result set, an empty List is returned.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#get(int, int)">get</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fromIndex</CODE> - The index of the first element to be returned.<DD><CODE>maxAmount</CODE> - The maximum number of elements to return.<DT><B>Returns:</B><DD>A list of elements starting with (inclusive) the element referenced by 'fromIndex'. An empty List if startIndex is equal to or bigger than the size of this entire result set.</DL></DD></DL><HR><A NAME="indexOf(java.lang.String)"><!-- --></A><H3>indexOf</H3><PRE>public int <B>indexOf</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> uid)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#indexOf(java.lang.String)">ResultSet</A></CODE></B></DD><DD>Returns the index in the full resultset of the element identified by the UID in te supplied argument.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html#indexOf(java.lang.String)">indexOf</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager">ResultSet</A><<A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" title="type parameter in ResultSetImpl">E</A> extends <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/Result.html" title="interface in org.jivesoftware.openfire.resultsetmanager">Result</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>uid</CODE> - The UID of the element to search for<DT><B>Returns:</B><DD>The index of the element.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jivesoftware/openfire/resultsetmanager/ResultSet.html" title="class in org.jivesoftware.openfire.resultsetmanager"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/resultsetmanager/ResultSetImpl.html" target="_top"><B>FRAMES</B></A> <A HREF="ResultSetImpl.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -