uTools-Manuals/docs/java/javax/management/openmbean/OpenMBeanAttributeInfoSupport.html

1100 lines
57 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact3
</div>
<div class="subTitle">
javax.management.openmbean
</div>
<h2 class="title" title="Class OpenMBeanAttributeInfoSupport">Class OpenMBeanAttributeInfoSupport</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../javax/management/MBeanFeatureInfo.html" title="class in javax.management">javax.management.MBeanFeatureInfo</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">javax.management.MBeanAttributeInfo</a></li>
<li>
<ul class="inheritance">
<li>javax.management.openmbean.OpenMBeanAttributeInfoSupport</li>
</ul> </li>
</ul> </li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../java/io/Serializable.html" title="java.io中的接口">Serializable</a> <a href="../../../java/lang/Cloneable.html" title="java.lang中的接口">Cloneable</a> <a href="../../../javax/management/DescriptorRead.html" title="javax.management中的接口">DescriptorRead</a> <a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="javax.management.openmbean中的接口">OpenMBeanAttributeInfo</a> <a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="javax.management.openmbean中的接口">OpenMBeanParameterInfo</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public class <span class="typeNameLabel">OpenMBeanAttributeInfoSupport</span>
extends <a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</a>
implements <a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="interface in javax.management.openmbean">OpenMBeanAttributeInfo</a></pre>
<div class="block">
描述一个打开的MBean的属性。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.5
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../serialized-form.html#javax.management.openmbean.OpenMBeanAttributeInfoSupport">Serialized Form</a>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.javax.management.MBeanFeatureInfo">
<!-- --> </a> <h3>Fields inherited from class javax.management.<a href="../../../javax/management/MBeanFeatureInfo.html" title="class in javax.management">MBeanFeatureInfo</a></h3> <code><a href="../../../javax/management/MBeanFeatureInfo.html#description">description</a>, <a href="../../../javax/management/MBeanFeatureInfo.html#name">name</a></code></li>
</ul> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-">OpenMBeanAttributeInfoSupport</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> description, <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt; openType, boolean isReadable, boolean isWritable, boolean isIs)</code>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的与指定的属性
<code>name</code>
<code>openType</code>
<code>description</code> ,以及指定的读/写访问属性。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-javax.management.Descriptor-">OpenMBeanAttributeInfoSupport</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> description, <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt; openType, boolean isReadable, boolean isWritable, boolean isIs, <a href="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</a> descriptor)</code>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放的MBean具有指定的属性
<code>name</code>
<code>openType</code>
<code>description</code> ,读/写访问属性,和
<code>Descriptor</code>
</div> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-">OpenMBeanAttributeInfoSupport</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> description, <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue)</code>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的属性具有指定
<code>name</code>
<code>openType</code>
<code>description</code>
<code>defaultValue</code> ,以及指定的读/写访问属性。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-java.lang.Comparable-java.lang.Comparable-">OpenMBeanAttributeInfoSupport</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> description, <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue, <a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;T&gt; minValue, <a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;T&gt; maxValue)</code>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的属性与指定
<code>name</code>
<code>openType</code>
<code>description</code>
<code>defaultValue</code>
<code>minValue</code>
<code>maxValue</code>
</div> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-T:A-">OpenMBeanAttributeInfoSupport</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> description, <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue, T[] legalValues)</code>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放的MBean具有指定的属性
<code>name</code>
<code>openType</code>
<code>description</code>
<code>defaultValue</code>
<code>legalValues</code> ,以及指定的读/写访问属性。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t4"><span><a href="javascript:show(8);">具体的方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#equals-java.lang.Object-">equals</a></span>(<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> obj)</code>
<div class="block">
将指定的
<code>obj</code>参数与此
<code>OpenMBeanAttributeInfoSupport</code>实例相比较。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#getDefaultValue--">getDefaultValue</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的默认值,否则
<code>null</code> null。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../../java/util/Set.html" title="interface in java.util">Set</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#getLegalValues--">getLegalValues</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的不可修改的合法值集合,否则
<code>null</code> null。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#getMaxValue--">getMaxValue</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的最大值,否则
<code>null</code> null。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code><a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#getMinValue--">getMinValue</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的最小值,否则
<code>null</code> null。
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#getOpenType--">getOpenType</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例描述的属性的值的打开类型。
</div> </td>
</tr>
<tr class="altColor" id="i6">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#hasDefaultValue--">hasDefaultValue</a></span>()</code>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的默认值
<code>false</code>其他。
</div> </td>
</tr>
<tr class="rowColor" id="i7">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#hashCode--">hashCode</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例的哈希码值。
</div> </td>
</tr>
<tr class="altColor" id="i8">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#hasLegalValues--">hasLegalValues</a></span>()</code>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的合法值集
<code>false</code>其他。
</div> </td>
</tr>
<tr class="rowColor" id="i9">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#hasMaxValue--">hasMaxValue</a></span>()</code>
<div class="block">
返回
<code>true</code>如果此
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述的属性的非null的最大值
<code>false</code>否则。
</div> </td>
</tr>
<tr class="altColor" id="i10">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#hasMinValue--">hasMinValue</a></span>()</code>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的最小值
<code>false</code>其他。
</div> </td>
</tr>
<tr class="rowColor" id="i11">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#isValue-java.lang.Object-">isValue</a></span>(<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> obj)</code>
<div class="block">
测试
<code>obj</code>是否是此
<code>OpenMBeanAttributeInfoSupport</code>实例描述的属性的
<code>OpenMBeanAttributeInfoSupport</code>
</div> </td>
</tr>
<tr class="altColor" id="i12">
<td class="colFirst"><code><a href="../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#toString--">toString</a></span>()</code>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例的字符串表示形式。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.management.MBeanAttributeInfo">
<!-- --> </a> <h3>Methods inherited from class javax.management.<a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</a></h3> <code><a href="../../../javax/management/MBeanAttributeInfo.html#clone--">clone</a>, <a href="../../../javax/management/MBeanAttributeInfo.html#getType--">getType</a>, <a href="../../../javax/management/MBeanAttributeInfo.html#isIs--">isIs</a>, <a href="../../../javax/management/MBeanAttributeInfo.html#isReadable--">isReadable</a>, <a href="../../../javax/management/MBeanAttributeInfo.html#isWritable--">isWritable</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.management.MBeanFeatureInfo">
<!-- --> </a> <h3>Methods inherited from class javax.management.<a href="../../../javax/management/MBeanFeatureInfo.html" title="class in javax.management">MBeanFeatureInfo</a></h3> <code><a href="../../../javax/management/MBeanFeatureInfo.html#getDescription--">getDescription</a>, <a href="../../../javax/management/MBeanFeatureInfo.html#getDescriptor--">getDescriptor</a>, <a href="../../../javax/management/MBeanFeatureInfo.html#getName--">getName</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.management.openmbean.OpenMBeanAttributeInfo">
<!-- --> </a> <h3>Methods inherited from interface javax.management.openmbean.<a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="interface in javax.management.openmbean">OpenMBeanAttributeInfo</a></h3> <code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#isIs--">isIs</a>, <a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#isReadable--">isReadable</a>, <a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#isWritable--">isWritable</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.management.openmbean.OpenMBeanParameterInfo">
<!-- --> </a> <h3>Methods inherited from interface javax.management.openmbean.<a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></h3> <code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getDescription--">getDescription</a>, <a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getName--">getName</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>OpenMBeanAttributeInfoSupport</h4> <pre>public OpenMBeanAttributeInfoSupport(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> description,
<a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt; openType,
boolean isReadable,
boolean isWritable,
boolean isIs)</pre>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的与指定的属性
<code>name</code>
<code>openType</code>
<code>description</code> ,以及指定的读/写访问属性。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 不能为null或空字符串。
</dd>
<dd>
<code>description</code> - 不能为null或空字符串。
</dd>
<dd>
<code>openType</code> - 不能为空。
</dd>
<dd>
<code>isReadable</code> -
<code>true</code>如果属性具有暴露给管理的吸气剂。
</dd>
<dd>
<code>isWritable</code> -
<code>true</code>如果属性具有暴露的管理设置器。
</dd>
<dd>
<code>isIs</code> -
<code>true</code>如果属性的getter的形式为
<tt>is<i>XXX</i></tt>的。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果
<code>name</code>
<code>description</code>为空或空字符串,或
<code>openType</code>为空。
</dd>
</dl> </li>
</ul> <a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-javax.management.Descriptor-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>OpenMBeanAttributeInfoSupport</h4> <pre>public OpenMBeanAttributeInfoSupport(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> description,
<a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt; openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
<a href="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</a> descriptor)</pre>
<div class="block">
<p> <span>构造一个<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放的MBean具有指定的属性<code>name</code> <code>openType</code> <code>description</code> ,读/写访问属性,和<code>Descriptor</code></span> </p>
<p> <span>所述<code>descriptor</code>可以包含将定义由这个类的某些方法返回的值,如在解释条目<a href="package-summary.html#constraints">package description</a></span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 不能为null或空字符串。
</dd>
<dd>
<code>description</code> - 不能为null或空字符串。
</dd>
<dd>
<code>openType</code> - 不能为空。
</dd>
<dd>
<code>isReadable</code> -
<code>true</code>如果属性具有暴露给管理的吸气剂。
</dd>
<dd>
<code>isWritable</code> -
<code>true</code>如果该属性具有暴露的管理设置器。
</dd>
<dd>
<code>isIs</code> -
<code>true</code>如果属性的getter的形式为
<tt>is<i>XXX</i></tt>的。
</dd>
<dd>
<span><code>descriptor</code> - 属性的描述符。</span>
<span>这可能是空的,这相当于空描述符。</span>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果
<code>name</code>
<code>description</code>为空或空字符串,或
<code>openType</code>为空或描述符条目如package description中所述
<a href="package-summary.html#constraints">无效</a>
</dd>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.6
</dd>
</dl> </li>
</ul> <a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-java.lang.Object-">
<!-- --> </a><a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>OpenMBeanAttributeInfoSupport</h4> <pre>public OpenMBeanAttributeInfoSupport(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> description,
<a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
T defaultValue)
throws <a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></pre>
<div class="block">
构造一个
<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的属性具有指定
<code>name</code>
<code>openType</code>
<code>description</code>
<code>defaultValue</code> ,以及指定的读/写访问属性。
</div>
<dl>
<dt>
<span class="paramLabel">参数类型</span>
</dt>
<dd>
<code>T</code> - 允许编译器检查
<code>defaultValue</code> (如果非空)对于给定的
<code>openType</code>具有正确的Java类型。
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 不能为null或空字符串。
</dd>
<dd>
<code>description</code> - 不能为null或空字符串。
</dd>
<dd>
<code>openType</code> - 不能为空。
</dd>
<dd>
<code>isReadable</code> -
<code>true</code>如果属性具有暴露给管理的吸气剂。
</dd>
<dd>
<code>isWritable</code> -
<code>true</code>如果该属性具有暴露给管理的设置器。
</dd>
<dd>
<code>isIs</code> -
<code>true</code>如果属性的getter的形式为
<tt>is<i>XXX</i></tt>的。
</dd>
<dd>
<span><code>defaultValue</code> -必须是一个有效的值<code>openType</code>对此属性指定;</span>
<span><code>ArrayType</code><code>TabularType</code>不支持默认值;</span>
<span>可以为null在这种情况下这意味着没有设置默认值。</span>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果
<code>name</code>
<code>description</code>为空或空字符串,或
<code>openType</code>为空。
</dd>
<dd>
<code><a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></code> - 如果
<code>defaultValue</code>不是指定的openType的
<code>openType</code> ,或
<code>defaultValue</code>是非空,
<code>openType</code>
<code>ArrayType</code>
<code>TabularType</code>
</dd>
</dl> </li>
</ul> <a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-java.lang.Object-java.lang.Object:A-">
<!-- --> </a><a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-T:A-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>OpenMBeanAttributeInfoSupport</h4> <pre>public OpenMBeanAttributeInfoSupport(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> description,
<a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
T defaultValue,
T[] legalValues)
throws <a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></pre>
<div class="block">
<p> <span>构造一个<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放的MBean具有指定的属性<code>name</code> <code>openType</code> <code>description</code> <code>defaultValue</code><code>legalValues</code> ,以及指定的读/写访问属性。</span> </p>
<p> <span><code>legalValues</code>的内容被复制所以legalValues引用的数组的后续<code>legalValues</code>对这个<code>OpenMBeanAttributeInfoSupport</code>实例没有影响。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数类型</span>
</dt>
<dd>
<code>T</code> - 允许编译器检查
<code>defaultValue</code>
<code>legalValues</code> ,如果非空,则具有给定
<code>openType</code>的正确Java类型。
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 不能为null或空字符串。
</dd>
<dd>
<code>description</code> - 不能为null或空字符串。
</dd>
<dd>
<code>openType</code> - 不能为空。
</dd>
<dd>
<code>isReadable</code> -
<code>true</code>如果该属性具有暴露给管理的吸气剂。
</dd>
<dd>
<code>isWritable</code> -
<code>true</code>如果属性具有暴露的管理设置器。
</dd>
<dd>
<code>isIs</code> -
<code>true</code>如果属性的getter的形式为
<tt>is<i>XXX</i></tt>的。
</dd>
<dd>
<span><code>defaultValue</code> -必须是一个有效的值<code>openType</code>对此属性指定;</span>
<span><code>ArrayType</code><code>TabularType</code>不支持默认值;</span>
<span>可以为null在这种情况下这意味着没有设置默认值。</span>
</dd>
<dd>
<span><code>legalValues</code> -每个包含值必须是有效的<code>openType</code>对此属性指定;</span>
<span><code>ArrayType</code><code>TabularType</code>不支持合法值;</span>
<span>可以为空或为空。</span>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果
<code>name</code>
<code>description</code>为空或空字符串,或
<code>openType</code>为空。
</dd>
<dd>
<code><a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></code> -如果
<code>defaultValue</code>是不是指定的有效值
<code>openType</code> ,或在一个值
<code>legalValues</code>无效指定
<code>openType</code> ,或
<code>defaultValue</code>为非null和
<code>openType</code>
<code>ArrayType</code>
<code>TabularType</code> ,或
<code>legalValues</code>为非null和非空和
<code>openType</code>
<code>ArrayType</code>
<code>TabularType</code> ,或
<code>legalValues</code>是非空和非空,
<code>defaultValue</code>不包含在
<code>legalValues</code>
</dd>
</dl> </li>
</ul> <a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-java.lang.Object-java.lang.Comparable-java.lang.Comparable-">
<!-- --> </a><a name="OpenMBeanAttributeInfoSupport-java.lang.String-java.lang.String-javax.management.openmbean.OpenType-boolean-boolean-boolean-T-java.lang.Comparable-java.lang.Comparable-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>OpenMBeanAttributeInfoSupport</h4> <pre>public OpenMBeanAttributeInfoSupport(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> name,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> description,
<a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;T&gt; openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
T defaultValue,
<a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;T&gt; minValue,
<a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;T&gt; maxValue)
throws <a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></pre>
<div class="block">
<span>构造一个<code>OpenMBeanAttributeInfoSupport</code>实例该实例描述了一种开放MBean的属性与指定<code>name</code> <code>openType</code> <code>description</code> <code>defaultValue</code> <code>minValue</code><code>maxValue</code></span>
<span>可以仅为值为<code>Comparable</code>的打开类型指定最小值和最大值。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数类型</span>
</dt>
<dd>
<code>T</code> -允许编译器检查
<code>defaultValue</code>
<code>minValue</code>
<code>maxValue</code> 如果非空对给定正确的Java类型
<code>openType</code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>name</code> - 不能为null或空字符串。
</dd>
<dd>
<code>description</code> - 不能为null或空字符串。
</dd>
<dd>
<code>openType</code> - 不能为空。
</dd>
<dd>
<code>isReadable</code> -
<code>true</code>如果该属性具有暴露给管理的getter。
</dd>
<dd>
<code>isWritable</code> -
<code>true</code>如果该属性具有暴露给管理的设置器。
</dd>
<dd>
<code>isIs</code> -
<code>true</code>如果属性的getter是
<tt>is<i>XXX</i></tt>
</dd>
<dd>
<span><code>defaultValue</code> -必须是一个有效的值<code>openType</code>对此属性指定;</span>
<span><code>ArrayType</code><code>TabularType</code>不支持默认值;</span>
<span>可以为null在这种情况下这意味着没有设置默认值。</span>
</dd>
<dd>
<span><code>minValue</code> -必须是有效的为<code>openType</code>该属性指定的;</span>
<span>可以为null在这种情况下这意味着没有设置最小值。</span>
</dd>
<dd>
<span><code>maxValue</code> -必须是有效的为<code>openType</code>该属性指定的;</span>
<span>可以为null在这种情况下这意味着没有设置最大值。</span>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</a></code> - 如果
<code>name</code>
<code>description</code>为空或空字符串,或
<code>openType</code>为空。
</dd>
<dd>
<code><a href="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</a></code> -如果
<code>defaultValue</code>
<code>minValue</code>
<code>maxValue</code>是不是指定的有效值
<code>openType</code> ,或
<code>defaultValue</code>为非null和
<code>openType</code>
<code>ArrayType</code>
<code>TabularType</code> ,或两者
<code>minValue</code>
<code>maxValue</code>都是非空和
<code>minValue.compareTo(maxValue) &gt; 0</code>
<code>true</code> ,或两者
<code>defaultValue</code>
<code>minValue</code>为非空,
<code>minValue.compareTo(defaultValue) &gt; 0</code>
<code>true</code> ,或
<code>defaultValue</code>
<code>maxValue</code>均为非空,
<code>defaultValue.compareTo(maxValue) &gt; 0</code>
<code>true</code>
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getOpenType--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getOpenType</h4> <pre>public <a href="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</a>&lt;?&gt; getOpenType()</pre>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例描述的属性的值的打开类型。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getOpenType--">getOpenType</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
开放式。
</dd>
</dl> </li>
</ul> <a name="getDefaultValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getDefaultValue</h4> <pre>public <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> getDefaultValue()</pre>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的默认值,否则
<code>null</code> null。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getDefaultValue--">getDefaultValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
默认值。
</dd>
</dl> </li>
</ul> <a name="getLegalValues--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getLegalValues</h4> <pre>public <a href="../../../java/util/Set.html" title="interface in java.util">Set</a>&lt;?&gt; getLegalValues()</pre>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的不可修改的合法值集合,否则
<code>null</code> null。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getLegalValues--">getLegalValues</a></code>在接口
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
一套法定价值观。
</dd>
</dl> </li>
</ul> <a name="getMinValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMinValue</h4> <pre>public <a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;?&gt; getMinValue()</pre>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的最小值,否则
<code>null</code> null。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getMinValue--">getMinValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
最小值。
</dd>
</dl> </li>
</ul> <a name="getMaxValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getMaxValue</h4> <pre>public <a href="../../../java/lang/Comparable.html" title="interface in java.lang">Comparable</a>&lt;?&gt; getMaxValue()</pre>
<div class="block">
返回此
<code>OpenMBeanAttributeInfoSupport</code>实例(如果指定)描述的属性的最大值,否则
<code>null</code> null。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#getMaxValue--">getMaxValue</a></code>在接口
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
最大值。
</dd>
</dl> </li>
</ul> <a name="hasDefaultValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>hasDefaultValue</h4> <pre>public boolean hasDefaultValue()</pre>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的默认值
<code>false</code>其他。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hasDefaultValue--">hasDefaultValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
如果有默认值则为true。
</dd>
</dl> </li>
</ul> <a name="hasLegalValues--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>hasLegalValues</h4> <pre>public boolean hasLegalValues()</pre>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的合法值集
<code>false</code>其他。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hasLegalValues--">hasLegalValues</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
如果有一套合法的价值观,就是真实的。
</dd>
</dl> </li>
</ul> <a name="hasMinValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>hasMinValue</h4> <pre>public boolean hasMinValue()</pre>
<div class="block">
返回
<code>true</code>如果
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述属性的非null的最小值
<code>false</code>其他。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hasMinValue--">hasMinValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
如果有最小值,则为真。
</dd>
</dl> </li>
</ul> <a name="hasMaxValue--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>hasMaxValue</h4> <pre>public boolean hasMaxValue()</pre>
<div class="block">
返回
<code>true</code>如果此
<code>OpenMBeanAttributeInfoSupport</code>实例指定所描述的属性的非null的最大值
<code>false</code>否则。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hasMaxValue--">hasMaxValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
如果有最大值则为true。
</dd>
</dl> </li>
</ul> <a name="isValue-java.lang.Object-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>isValue</h4> <pre>public boolean isValue(<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> obj)</pre>
<div class="block">
测试
<code>obj</code>
<code>OpenMBeanAttributeInfoSupport</code>实例描述的属性的
<code>OpenMBeanAttributeInfoSupport</code>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#isValue-java.lang.Object-">isValue</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>obj</code> - 要测试的对象。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>true</code>如果
<code>obj</code>
<code>OpenMBeanAttributeInfoSupport</code>实例
<code>false</code>参数的有效值,
<code>false</code> false。
</dd>
</dl> </li>
</ul> <a name="equals-java.lang.Object-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>equals</h4> <pre>public boolean equals(<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a> obj)</pre>
<div class="block">
<span>将指定的<code>obj</code>参数与此<code>OpenMBeanAttributeInfoSupport</code>实例进行比较以获得相等性。</span>
<p> <span>返回<code>true</code>当且仅当以下所有语句都为真时:</span> </p>
<ul>
<li> <span><code>obj</code>为非空,</span> </li>
<li> <span><code>obj</code>还实现了<code>OpenMBeanAttributeInfo</code>接口,</span> </li>
<li> <span>他们的名字是平等的</span> </li>
<li> <span>他们的公开类型是平等的</span> </li>
<li> <span>他们的访问属性isReadableisWritable和isIs是相等的</span> </li>
<li> <span>其默认值,最小值,最大值和合法值相等。</span> </li>
</ul>
<span>这样可确保<code>equals</code>方法适用于<code>obj</code>参数这些参数是OpenMBeanAttributeInfo接口的<code>OpenMBeanAttributeInfo</code>实现。</span>
<p> <span>如果<code>obj</code>也实现<a href="../../../javax/management/DescriptorRead.html" title="javax.management中的接口"><code>DescriptorRead</code></a> ,那么它的<a href="../../../javax/management/DescriptorRead.html#getDescriptor--"><code>getDescriptor()</code></a>方法也必须返回与该对象相同的值。</span> </p>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#equals-java.lang.Object-">equals</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="interface in javax.management.openmbean">OpenMBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#equals-java.lang.Object-">equals</a></code>在接口
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">重写:</span>
</dt>
<dd>
<code><a href="../../../javax/management/MBeanAttributeInfo.html#equals-java.lang.Object-">equals</a></code>在类别
<code><a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>obj</code> - 要与此
<code>OpenMBeanAttributeInfoSupport</code>实例相等的对象。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>true</code>如果指定的对象等于此
<code>OpenMBeanAttributeInfoSupport</code>实例。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<span><a href="../../../java/lang/Object.html#hashCode--"><code>Object.hashCode()</code></a> <a href="../../../java/util/HashMap.html" title="java.util中的类"><code>HashMap</code></a></span>
</dd>
</dl> </li>
</ul> <a name="hashCode--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>hashCode</h4> <pre>public int hashCode()</pre>
<div class="block">
<p> <span>返回此<code>OpenMBeanAttributeInfoSupport</code>实例的哈希码值。</span> </p>
<p> <span>一个的哈希码<code>OpenMBeanAttributeInfoSupport</code>实例中使用的所有信息元素的哈希码的总和<code>equals</code>比较(即:其名称, <i>敞开式</i> ,它的默认值,最小值,最大值和合法值,并且它的描述符)。</span> </p>
<p> <span>这确保<code>t1.equals(t2)</code>意味着<code>t1.hashCode()==t2.hashCode()</code>对于任何两个<code>OpenMBeanAttributeInfoSupport</code>实例<code>t1</code><code>t2</code> ,根据方法<a href="../../../java/lang/Object.html#hashCode--"><code>Object.hashCode()</code></a>的一般合同的<a href="../../../java/lang/Object.html#hashCode--">要求</a></span> </p>
<p> <span>但是,请注意,实现<code>OpenMBeanAttributeInfo</code>接口的类的另一个实例可能等于<code>OpenMBeanAttributeInfoSupport</code>定义的<a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#equals-java.lang.Object-">OpenMBeanAttributeInfoSupport</a>实例,但如果其计算方式<a href="../../../javax/management/openmbean/OpenMBeanAttributeInfoSupport.html#equals-java.lang.Object-">不同</a> ,则可能具有不同的哈希码。</span> </p>
<p> <span>由于<code>OpenMBeanAttributeInfoSupport</code>实例是不可变的,因此在第一次调用<code>hashCode</code>时,该实例的哈希码将被计算一次,然后为后续调用返回相同的值。</span> </p>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#hashCode--">hashCode</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="interface in javax.management.openmbean">OpenMBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#hashCode--">hashCode</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">重写:</span>
</dt>
<dd>
<code><a href="../../../javax/management/MBeanAttributeInfo.html#hashCode--">hashCode</a></code>
<code><a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
这个
<code>OpenMBeanAttributeInfoSupport</code>实例的哈希码值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../java/lang/Object.html#equals-java.lang.Object-"><code>Object.equals(java.lang.Object)</code></a>
<a href="../../../java/lang/System.html#identityHashCode-java.lang.Object-"><code>System.identityHashCode(java.lang.Object)</code></a>
</dd>
</dl> </li>
</ul> <a name="toString--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>toString</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> toString()</pre>
<div class="block">
<span>返回此<code>OpenMBeanAttributeInfoSupport</code>实例的字符串表示形式。</span>
<p> <span>字符串表示由此类的名称(即<code>javax.management.openmbean.OpenMBeanAttributeInfoSupport</code> )组成,名称的字符串表示形式和所述参数的打开类型,其默认值,最小值,最大值和合法值的字符串表示形式以及其描述符的字符串表示形式。</span> </p>
<p> <span>由于<code>OpenMBeanAttributeInfoSupport</code>实例是不可变的,所以在第一次调用<code>toString</code>时,该实例的字符串表示计算一次,然后为后续调用返回相同的值。</span> </p>
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html#toString--">toString</a></code>在接口
<code><a href="../../../javax/management/openmbean/OpenMBeanAttributeInfo.html" title="interface in javax.management.openmbean">OpenMBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html#toString--">toString</a></code>在界面
<code><a href="../../../javax/management/openmbean/OpenMBeanParameterInfo.html" title="interface in javax.management.openmbean">OpenMBeanParameterInfo</a></code>
</dd>
<dt>
<span class="overrideSpecifyLabel">重写:</span>
</dt>
<dd>
<code><a href="../../../javax/management/MBeanAttributeInfo.html#toString--">toString</a></code>在类别
<code><a href="../../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
这个
<code>OpenMBeanAttributeInfoSupport</code>实例的字符串表示形式。
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>