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

📄 tabulardata.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds <var>value</var> to this <tt>TabularData</tt> instance. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/TabularData.html#putAll(javax.management.openmbean.CompositeData[])">putAll</A></B>(<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A>[]&nbsp;values)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add all the elements in <var>values</var> to this <tt>TabularData</tt> instance.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/TabularData.html#remove(java.lang.Object[])">remove</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;key)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the <tt>CompositeData</tt> value whose index is <var>key</var> from this <tt>TabularData</tt> instance, and returns the removed value, or returns <tt>null</tt> if there is no value whose index is <var>key</var>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/TabularData.html#size()">size</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of <tt>CompositeData</tt> values (ie the number of rows) contained in this <tt>TabularData</tt> instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/TabularData.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this <code>TabularData</code> instance.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/TabularData.html#values()">values</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a collection view of the <tt>CompositeData</tt> values (ie the rows)  contained in this <tt>TabularData</tt> instance.  </TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getTabularType()"><!-- --></A><H3>getTabularType</H3><PRE>public <A HREF="../../../javax/management/openmbean/TabularType.html" title="class in javax.management.openmbean">TabularType</A> <B>getTabularType</B>()</PRE><DL><DD>Returns the <i>tabular type</i> describing this <tt>TabularData</tt> instance.<P><DD><DL><DT><B>Returns:</B><DD>the tabular type.</DL></DD></DL><HR><A NAME="calculateIndex(javax.management.openmbean.CompositeData)"><!-- --></A><H3>calculateIndex</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>calculateIndex</B>(<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A>&nbsp;value)</PRE><DL><DD>Calculates the index that would be used in this <tt>TabularData</tt> instance to refer to the specified composite data <var>value</var> parameter if it were added to this instance. This method checks for the type validity of the specified <var>value</var>,  but does not check if the calculated index is already used to refer to a value in this <tt>TabularData</tt> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the composite data value whose index in this 					  <tt>TabularData</tt> instance is to be calculated;					  must be of the same composite type as this instance's row type;					  must not be null.<DT><B>Returns:</B><DD>the index that the specified <var>value</var> would have in this <tt>TabularData</tt> instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <var>value</var> is <tt>null</tt><DD><CODE><A HREF="../../../javax/management/openmbean/InvalidOpenTypeException.html" title="class in javax.management.openmbean">InvalidOpenTypeException</A></CODE> - if <var>value</var> does not conform to this <tt>TabularData</tt> instance's 				          row type definition.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of <tt>CompositeData</tt> values (ie the number of rows) contained in this <tt>TabularData</tt> instance.<P><DD><DL><DT><B>Returns:</B><DD>the number of values contained.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Returns <tt>true</tt> if the number of <tt>CompositeData</tt> values (ie the number of rows) contained in this <tt>TabularData</tt> instance is zero.<P><DD><DL><DT><B>Returns:</B><DD>true if this <tt>TabularData</tt> is empty.</DL></DD></DL><HR><A NAME="containsKey(java.lang.Object[])"><!-- --></A><H3>containsKey</H3><PRE>public boolean <B>containsKey</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;key)</PRE><DL><DD>Returns <tt>true</tt> if and only if this <tt>TabularData</tt> instance contains a <tt>CompositeData</tt> value  (ie a row) whose index is the specified <var>key</var>. If <var>key</var> is <tt>null</tt> or does not conform to this <tt>TabularData</tt> instance's <tt>TabularType</tt> definition, this method simply returns <tt>false</tt>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the index value whose presence in this <tt>TabularData</tt> instance is to be tested.<DT><B>Returns:</B><DD><tt>true</tt> if this <tt>TabularData</tt> indexes a row value with the specified key.</DL></DD></DL><HR><A NAME="containsValue(javax.management.openmbean.CompositeData)"><!-- --></A><H3>containsValue</H3><PRE>public boolean <B>containsValue</B>(<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A>&nbsp;value)</PRE><DL><DD>Returns <tt>true</tt> if and only if this <tt>TabularData</tt> instance contains the specified <tt>CompositeData</tt> value. If <var>value</var> is <tt>null</tt> or does not conform to this <tt>TabularData</tt> instance's row type definition, this method simply returns <tt>false</tt>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the row value whose presence in this <tt>TabularData</tt> instance is to be tested.<DT><B>Returns:</B><DD><tt>true</tt> if this <tt>TabularData</tt> instance contains the specified row value.</DL></DD></DL><HR><A NAME="get(java.lang.Object[])"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A> <B>get</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;key)</PRE><DL><DD>Returns the <tt>CompositeData</tt> value whose index is <var>key</var>, or <tt>null</tt> if there is no value mapping to <var>key</var>, in this <tt>TabularData</tt> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the key of the row to return.<DT><B>Returns:</B><DD>the value corresponding to <var>key</var>.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if the <var>key</var> is <tt>null</tt><DD><CODE><A HREF="../../../javax/management/openmbean/InvalidKeyException.html" title="class in javax.management.openmbean">InvalidKeyException</A></CODE> - if the <var>key</var> does not conform to this <tt>TabularData</tt> instance's * <tt>TabularType</tt> definition</DL></DD></DL><HR><A NAME="put(javax.management.openmbean.CompositeData)"><!-- --></A><H3>put</H3><PRE>public void <B>put</B>(<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A>&nbsp;value)</PRE><DL><DD>Adds <var>value</var> to this <tt>TabularData</tt> instance. The composite type of <var>value</var> must be the same as this instance's row type (ie the composite type returned by <tt>this.getTabularType().<A HREF="../../../javax/management/openmbean/TabularType.html#getRowType()"><CODE>getRowType()</CODE></A></tt>), and there must not already be an existing value in this <tt>TabularData</tt> instance whose index is the same as the one calculated for the <var>value</var> to be added. The index for <var>value</var> is calculated according to this <tt>TabularData</tt> instance's <tt>TabularType</tt> definition (see <tt>TabularType.<A HREF="../../../javax/management/openmbean/TabularType.html#getIndexNames()"><CODE>getIndexNames()</CODE></A></tt>).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the composite data value to be added as a new row to this <tt>TabularData</tt> instance;					  must be of the same composite type as this instance's row type;					  must not be null.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <var>value</var> is <tt>null</tt><DD><CODE><A HREF="../../../javax/management/openmbean/InvalidOpenTypeException.html" title="class in javax.management.openmbean">InvalidOpenTypeException</A></CODE> - if <var>value</var> does not conform to this <tt>TabularData</tt> instance's 				          row type definition.<DD><CODE><A HREF="../../../javax/management/openmbean/KeyAlreadyExistsException.html" title="class in javax.management.openmbean">KeyAlreadyExistsException</A></CODE> - if the index for <var>value</var>, calculated according to 					  this <tt>TabularData</tt> instance's <tt>TabularType</tt> definition 					  already maps to an existing value in the underlying HashMap.</DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -