⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setvector.html

📁 学习JAVA的很好的JAVA包和文档包
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#registerNatives()">registerNatives</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_structure.Structure"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface structure.<A HREF="../structure/Structure.html">Structure</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../structure/Structure.html#elements()">elements</A>, <A HREF="../structure/Structure.html#values()">values</A></CODE></TD></TR></TABLE>&nbsp;<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="data"><!-- --></A><H3>data</H3><PRE>protected <A HREF="../structure/Vector.html">Vector</A> <B>data</B></PRE><DL><DD>The underlying structure --- a vector.</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="SetVector()"><!-- --></A><H3>SetVector</H3><PRE>public <B>SetVector</B>()</PRE><DL><DD>Construct a new set.</DL><HR><A NAME="SetVector(structure.Structure)"><!-- --></A><H3>SetVector</H3><PRE>public <B>SetVector</B>(<A HREF="../structure/Structure.html">Structure</A>&nbsp;other)</PRE><DL><DD>Construct a new set from another structure.</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="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Remove all the elements from the set.<DD><DL><DT><B>Postcondition:</B><DD>elements of set are removed</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Determine if the set is empty.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractStructure.html#isEmpty()">isEmpty</A></CODE> in class <CODE><A HREF="../structure/AbstractStructure.html">AbstractStructure</A></CODE></DL></DD><DD><DL><DT><B>Postcondition:</B><DD>returns true iff set is empty<DT><B>Returns:</B><DD>True iff there are no elements in set.</DL></DD></DL><HR><A NAME="add(java.lang.Object)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;e)</PRE><DL><DD>Add an element to set, if not already present.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - The new value to be added to set.<DT><B>Precondition:</B><DD>e is non-null object<DT><B>Postcondition:</B><DD>adds element e to set</DL></DD></DL><HR><A NAME="remove(java.lang.Object)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>remove</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;e)</PRE><DL><DD>Remove an element from the set.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - The element of the set to be removed.<DT><B>Precondition:</B><DD>e is non-null object<DT><B>Postcondition:</B><DD>e is removed from set, value returned<DT><B>Returns:</B><DD>The value actually removed.</DL></DD></DL><HR><A NAME="contains(java.lang.Object)"><!-- --></A><H3>contains</H3><PRE>public boolean <B>contains</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>&nbsp;e)</PRE><DL><DD>Returns true if value is an element of the set.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractStructure.html#contains(java.lang.Object)">contains</A></CODE> in class <CODE><A HREF="../structure/AbstractStructure.html">AbstractStructure</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - The element sought in set.<DT><B>Precondition:</B><DD>e is non-null<DT><B>Postcondition:</B><DD>returns true iff e is in set<DT><B>Returns:</B><DD>True iff the element is in the set.</DL></DD></DL><HR><A NAME="containsAll(structure.Structure)"><!-- --></A><H3>containsAll</H3><PRE>public boolean <B>containsAll</B>(<A HREF="../structure/Structure.html">Structure</A>&nbsp;other)</PRE><DL><DD>Determine if this set is a subset of other.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractSet.html#containsAll(structure.Structure)">containsAll</A></CODE> in class <CODE><A HREF="../structure/AbstractSet.html">AbstractSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The potential superset.<DT><B>Precondition:</B><DD>other is non-null reference to set<DT><B>Postcondition:</B><DD>returns true iff this set is subset of other</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Returns a shallow clone of this set.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</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 a copy of set<DT><B>Returns:</B><DD>A new set with same values.</DL></DD></DL><HR><A NAME="addAll(structure.Structure)"><!-- --></A><H3>addAll</H3><PRE>public void <B>addAll</B>(<A HREF="../structure/Structure.html">Structure</A>&nbsp;other)</PRE><DL><DD>Compute the union of this set with other.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractSet.html#addAll(structure.Structure)">addAll</A></CODE> in class <CODE><A HREF="../structure/AbstractSet.html">AbstractSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The set to be unioned with this.<DT><B>Precondition:</B><DD>other is a non-null structure<DT><B>Postcondition:</B><DD>add all elements of other to set, if needed</DL></DD></DL><HR><A NAME="retainAll(structure.Structure)"><!-- --></A><H3>retainAll</H3><PRE>public void <B>retainAll</B>(<A HREF="../structure/Structure.html">Structure</A>&nbsp;other)</PRE><DL><DD>Compute the intersection of this set and other. Members of result are in both this and other.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractSet.html#retainAll(structure.Structure)">retainAll</A></CODE> in class <CODE><A HREF="../structure/AbstractSet.html">AbstractSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The other set to be intersected with this.<DT><B>Precondition:</B><DD>other is non-null reference to set<DT><B>Postcondition:</B><DD>returns set containing intersection of this and other<DT><B>Returns:</B><DD>Intersection of this and other.</DL></DD></DL><HR><A NAME="removeAll(structure.Structure)"><!-- --></A><H3>removeAll</H3><PRE>public void <B>removeAll</B>(<A HREF="../structure/Structure.html">Structure</A>&nbsp;other)</PRE><DL><DD>Compute the difference between two sets. Values of the result are members of this, but not other.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../structure/AbstractSet.html#removeAll(structure.Structure)">removeAll</A></CODE> in class <CODE><A HREF="../structure/AbstractSet.html">AbstractSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The set whose values are to be eliminated from this.<DT><B>Precondition:</B><DD>other is non-null reference to set<DT><B>Postcondition:</B><DD>returns set containing difference of this and other<DT><B>Returns:</B><DD>Difference between this and other.</DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html">Iterator</A> <B>iterator</B>()</PRE><DL><DD>Construct an traversal to traverse the elements of the set. Elements will not appear in any particular order.<DD><DL><DT><B>Postcondition:</B><DD>returns traversal to traverse the elements of set<DT><B>Returns:</B><DD>An traversal for inspecting members of the set.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Determine the number of elements in the set.<DD><DL><DT><B>Postcondition:</B><DD>returns number of elements in set<DT><B>Returns:</B><DD>The number of elements in the set.</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 set.<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 a string representation of set<DT><B>Returns:</B><DD>A string representing the set.</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>[]&nbsp;argv)</PRE><DL></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>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href=../copyright.html target=_top>&copy; 1998-2002 McGraw-Hill</a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../structure/SetList.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../structure/SinglyLinkedList.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>  &nbsp;&nbsp;<A HREF="SetVector.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -