📄 doublylinkedlistelement.html
字号:
<!-- ============ 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="data"><!-- --></A><H3>data</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>data</B></PRE><DL><DD>The actual value stored within element; provided by user.</DL><HR><A NAME="nextElement"><!-- --></A><H3>nextElement</H3><PRE>protected <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> <B>nextElement</B></PRE><DL><DD>The reference of element following.</DL><HR><A NAME="previousElement"><!-- --></A><H3>previousElement</H3><PRE>protected <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> <B>previousElement</B></PRE><DL><DD>The reference to element preceding.</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="DoublyLinkedListElement(java.lang.Object, structure.DoublyLinkedListElement, structure.DoublyLinkedListElement)"><!-- --></A><H3>DoublyLinkedListElement</H3><PRE>public <B>DoublyLinkedListElement</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> v, <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> next, <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> previous)</PRE><DL><DD>Construct a doubly linked list element.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - The value associated with the element.<DD><CODE>next</CODE> - The reference to the next element.<DD><CODE>previous</CODE> - The reference to the previous element.</DL></DD></DL><HR><A NAME="DoublyLinkedListElement(java.lang.Object)"><!-- --></A><H3>DoublyLinkedListElement</H3><PRE>public <B>DoublyLinkedListElement</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> v)</PRE><DL><DD>Construct a doubly linked list element containing a value. Not part of any list (references are null).<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - The value referenced by this element.</DL></DD></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="next()"><!-- --></A><H3>next</H3><PRE>public <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> <B>next</B>()</PRE><DL><DD>Access the reference to the next value.<DD><DL><DT><B>Postcondition:</B><DD>returns the element that follows this<DT><B>Returns:</B><DD>Reference to the next element of the list.</DL></DD></DL><HR><A NAME="previous()"><!-- --></A><H3>previous</H3><PRE>public <A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> <B>previous</B>()</PRE><DL><DD>Get a reference to the previous element of the list.<DD><DL><DT><B>Postcondition:</B><DD>returns element that precedes this<DT><B>Returns:</B><DD>Reference to the previous element.</DL></DD></DL><HR><A NAME="value()"><!-- --></A><H3>value</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>value</B>()</PRE><DL><DD>Get value stored within the element.<DD><DL><DT><B>Postcondition:</B><DD>returns value stored here<DT><B>Returns:</B><DD>The reference to the value stored.</DL></DD></DL><HR><A NAME="setNext(structure.DoublyLinkedListElement)"><!-- --></A><H3>setNext</H3><PRE>public void <B>setNext</B>(<A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> next)</PRE><DL><DD>Set reference to the next element.<DD><DL><DT><B>Parameters:</B><DD><CODE>next</CODE> - The reference to the new next element.<DT><B>Postcondition:</B><DD>sets value associated with this element</DL></DD></DL><HR><A NAME="setPrevious(structure.DoublyLinkedListElement)"><!-- --></A><H3>setPrevious</H3><PRE>public void <B>setPrevious</B>(<A HREF="../structure/DoublyLinkedListElement.html">DoublyLinkedListElement</A> previous)</PRE><DL><DD>Set the reference to the previous element.<DD><DL><DT><B>Parameters:</B><DD><CODE>previous</CODE> - The new previous element.<DT><B>Postcondition:</B><DD>establishes a new reference to a previous value</DL></DD></DL><HR><A NAME="setValue(java.lang.Object)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> value)</PRE><DL><DD>Set the value of the element.<DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The new value associated with the element.<DT><B>Postcondition:</B><DD>sets a new value for this object</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> other)</PRE><DL><DD>Determine if this element equal to another.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The other doubly linked list element.<DT><B>Postcondition:</B><DD>returns true if this object and other are equal<DT><B>Returns:</B><DD>True iff the values within elements are the same.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Generate hash code associated with the element.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>generates hash code for element<DT><B>Returns:</B><DD>The hash code associated with the value in element.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Construct a string representation of the element.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>returns string representation of element<DT><B>Returns:</B><DD>The string representing element.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <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><a href=../copyright.html target=_top>© 1998-2002 McGraw-Hill</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../structure/DoublyLinkedList.html"><B>PREV CLASS</B></A> <A HREF="../structure/DoublyLinkedListIterator.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="DoublyLinkedListElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -