📄 rowiterator.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Thu Mar 27 11:10:19 CST 2003 -->
<TITLE>
axion 1.0-M1 API: Interface RowIterator
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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="class-use/RowIterator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../org/axiondb/RowDecoratorIterator.html"><B>PREV CLASS</B></A>
<A HREF="../../org/axiondb/RowSource.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="RowIterator.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.axiondb</FONT>
<BR>
Interface RowIterator</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../org/axiondb/engine/rowiterators/SingleRowIterator.html">SingleRowIterator</A>, <A HREF="../../org/axiondb/engine/rowiterators/DelegatingRowIterator.html">DelegatingRowIterator</A>, <A HREF="../../org/axiondb/engine/rowiterators/BaseRowIterator.html">BaseRowIterator</A>, <A HREF="../../org/axiondb/engine/rowiterators/ChainedRowIterator.html">ChainedRowIterator</A>, <A HREF="../../org/axiondb/engine/rowiterators/EmptyRowIterator.html">EmptyRowIterator</A></DD>
</DL>
<HR>
<DL>
<DT>public interface <B>RowIterator</B></DL>
<P>
A bidirectional iterator over a collection of <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A>s.
<P>
<DL>
<DT><B>Version: </B><DD>$Revision: 1.9 $ $Date: 2002/12/17 17:02:44 $</DD>
</DL>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ========== 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="../../org/axiondb/RowIterator.html#add(org.axiondb.Row)">add</A></B>(<A HREF="../../org/axiondb/Row.html">Row</A> row)</CODE>
<BR>
Add a <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> at the current position in my underlying collection, or throw <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/UnsupportedOperationException.html"><CODE>UnsupportedOperationException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#current()">current</A></B>()</CODE>
<BR>
Returns the last <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> returned by me (by <A HREF="../../org/axiondb/RowIterator.html#next()"><CODE>next()</CODE></A>, <A HREF="../../org/axiondb/RowIterator.html#previous()"><CODE>previous()</CODE></A>, <A HREF="../../org/axiondb/RowIterator.html#first()"><CODE>first()</CODE></A>, <A HREF="../../org/axiondb/RowIterator.html#last()"><CODE>last()</CODE></A>, etc.).</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="../../org/axiondb/RowIterator.html#currentIndex()">currentIndex</A></B>()</CODE>
<BR>
Returns the index of the <A HREF="../../org/axiondb/RowIterator.html#current()"><CODE>current()</CODE></A> row, if any.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#first()">first</A></B>()</CODE>
<BR>
Returns the first <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list, positioning the cursor to just before the first <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list.</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="../../org/axiondb/RowIterator.html#hasCurrent()">hasCurrent</A></B>()</CODE>
<BR>
Returns <code>true</code> if I have a current <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A>.</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="../../org/axiondb/RowIterator.html#hasNext()">hasNext</A></B>()</CODE>
<BR>
Returns <code>true</code> if I have more <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A>s when traversing the list in the forward direction.</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="../../org/axiondb/RowIterator.html#hasPrevious()">hasPrevious</A></B>()</CODE>
<BR>
Returns <code>true</code> if I have more <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A>s when traversing the list in the reverse direction.</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="../../org/axiondb/RowIterator.html#isEmpty()">isEmpty</A></B>()</CODE>
<BR>
Returns <code>true</code> if there are no rows to report with this iterator.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#last()">last</A></B>()</CODE>
<BR>
Returns the last <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list, positioning the cursor to just after the last <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#next()">next</A></B>()</CODE>
<BR>
Returns the next <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list, or throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/NoSuchElementException.html"><CODE>NoSuchElementException</CODE></A> if no next <code>Row</code> exists.</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="../../org/axiondb/RowIterator.html#nextIndex()">nextIndex</A></B>()</CODE>
<BR>
Returns the index of the <A HREF="../../org/axiondb/RowIterator.html#next()"><CODE>next()</CODE></A> row, if any, or the number of elements is the iterator if we've reached the end.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#peekNext()">peekNext</A></B>()</CODE>
<BR>
Return the value that would be returned by a call to <A HREF="../../org/axiondb/RowIterator.html#next()"><CODE>next()</CODE></A>, if any, but don't update my position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#peekPrevious()">peekPrevious</A></B>()</CODE>
<BR>
Return the value that would be returned by a call to <A HREF="../../org/axiondb/RowIterator.html#previous()"><CODE>previous()</CODE></A>, if any, but don't update my position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/axiondb/Row.html">Row</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/RowIterator.html#previous()">previous</A></B>()</CODE>
<BR>
Returns the previous <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list, or throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/NoSuchElementException.html"><CODE>NoSuchElementException</CODE></A> if no next <code>Row</code> exists.</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="../../org/axiondb/RowIterator.html#previousIndex()">previousIndex</A></B>()</CODE>
<BR>
Returns the index of the <A HREF="../../org/axiondb/RowIterator.html#previous()"><CODE>previous()</CODE></A> row, if any, or -1 if we're add the beginning of the list.</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/axiondb/RowIterator.html#remove()">remove</A></B>()</CODE>
<BR>
Set the <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> at the current position in my underlying collection, or throw <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/UnsupportedOperationException.html"><CODE>UnsupportedOperationException</CODE></A>.</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/axiondb/RowIterator.html#reset()">reset</A></B>()</CODE>
<BR>
Re-initialize this <code>RowIterator</code> to its initial state (positioned just before the first <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> in the list).</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/axiondb/RowIterator.html#set(org.axiondb.Row)">set</A></B>(<A HREF="../../org/axiondb/Row.html">Row</A> row)</CODE>
<BR>
Set the <A HREF="../../org/axiondb/Row.html"><CODE>Row</CODE></A> at the current position in my underlying collection, or throw <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/UnsupportedOperationException.html"><CODE>UnsupportedOperationException</CODE></A>.</TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -