📄 tabulardata.html
字号:
</DD></DL><HR><A NAME="remove(java.lang.Object[])"><!-- --></A><H3>remove</H3><PRE>public <A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A> <B>remove</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>[] key)</PRE><DL><DD>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>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the index of the value to get in this <tt>TabularData</tt> instance; must be valid with this <tt>TabularData</tt> instance's row type definition; must not be null.<DT><B>Returns:</B><DD>previous value associated with specified key, or <tt>null</tt> if there was no mapping for key.<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="putAll(javax.management.openmbean.CompositeData[])"><!-- --></A><H3>putAll</H3><PRE>public void <B>putAll</B>(<A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A>[] values)</PRE><DL><DD>Add all the elements in <var>values</var> to this <tt>TabularData</tt> instance. If any element in <var>values</var> does not satisfy the constraints defined in <A HREF="../../../javax/management/openmbean/TabularData.html#put(javax.management.openmbean.CompositeData)"><CODE><tt>put</tt></CODE></A>, or if any two elements in <var>values</var> have the same index calculated according to this <tt>TabularData</tt> instance's <tt>TabularType</tt> definition, then an exception describing the failure is thrown and no element of <var>values</var> is added, thus leaving this <tt>TabularData</tt> instance unchanged.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>values</CODE> - the array of composite data values to be added as new rows to this <tt>TabularData</tt> instance; if <var>values</var> is <tt>null</tt> or empty, this method returns without doing anything.<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 an element of <var>values</var> is <tt>null</tt><DD><CODE><A HREF="../../../javax/management/openmbean/InvalidOpenTypeException.html" title="class in javax.management.openmbean">InvalidOpenTypeException</A></CODE> - if an element of <var>values</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 an element of <var>values</var>, calculated according to this <tt>TabularData</tt> instance's <tt>TabularType</tt> definition already maps to an existing value in this instance, or two elements of <var>values</var> have the same index.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all <tt>CompositeData</tt> values (ie rows) from this <tt>TabularData</tt> instance.<P><DD><DL></DL></DD></DL><HR><A NAME="keySet()"><!-- --></A><H3>keySet</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>keySet</B>()</PRE><DL><DD>Returns a set view of the keys (ie the index values) of the <tt>CompositeData</tt> values (ie the rows) contained in this <tt>TabularData</tt> instance. The returned Set can then be used to iterate over the keys.<P><DD><DL><DT><B>Returns:</B><DD>a set view of the index values used in this <tt>TabularData</tt> instance.</DL></DD></DL><HR><A NAME="values()"><!-- --></A><H3>values</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>values</B>()</PRE><DL><DD>Returns a collection view of the <tt>CompositeData</tt> values (ie the rows) contained in this <tt>TabularData</tt> instance. The returned collection can then be used to iterate over the values.<P><DD><DL><DT><B>Returns:</B><DD>a collection view of the rows contained in this <tt>TabularData</tt> instance.</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.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Compares the specified <var>obj</var> parameter with this <code>TabularData</code> instance for equality. <p> Returns <tt>true</tt> if and only if all of the following statements are true: <ul> <li><var>obj</var> is non null,</li> <li><var>obj</var> also implements the <code>TabularData</code> interface,</li> <li>their row types are equal</li> <li>their contents (ie index to value mappings) are equal</li> </ul> This ensures that this <tt>equals</tt> method works properly for <var>obj</var> parameters which are different implementations of the <code>TabularData</code> interface. <br> <P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to be compared for equality with this <code>TabularData</code> instance;<DT><B>Returns:</B><DD><code>true</code> if the specified object is equal to this <code>TabularData</code> instance.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code value for this <code>TabularData</code> instance. <p> The hash code of a <code>TabularData</code> instance is the sum of the hash codes of all elements of information used in <code>equals</code> comparisons (ie: its <i>tabular type</i> and its content, where the content is defined as all the index to value mappings). <p> This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code> for any two <code>TabularDataSupport</code> instances <code>t1</code> and <code>t2</code>, as required by the general contract of the method <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()"> <code>Object.hashCode</code> </a>.<P><DD><DL><DT><B>Returns:</B><DD>the hash code value for this <code>TabularDataSupport</code> instance</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this <code>TabularData</code> instance. <p> The string representation consists of the name of the implementing class, and the tabular type of this instance.<P><DD><DL><DT><B>Returns:</B><DD>a string representation of this <code>TabularData</code> instance</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=3 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>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TabularData.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 | 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -