public class OpenMBeanConstructorInfoSupport extends MBeanConstructorInfo implements OpenMBeanConstructorInfo
description, name| Constructor and Description |
|---|
OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature)
构建了一个
OpenMBeanConstructorInfoSupport实例,描述了一类具有指定的
name开放MBean的构造函数,
description和
signature。
|
OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)
构建了一个
OpenMBeanConstructorInfoSupport实例,描述了一类开放MBean与指定的
name,
description,
signature构造函数,和
descriptor。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
比较指定的
obj参数与本
OpenMBeanConstructorInfoSupport实例为平等。
|
int |
hashCode()
返回此实例的哈希代码值
OpenMBeanConstructorInfoSupport。
|
String |
toString()
返回该
OpenMBeanConstructorInfoSupport实例的字符串表示形式。
|
clone, getSignaturegetDescription, getDescriptor, getNamefinalize, getClass, notify, notifyAll, wait, wait, waitgetDescription, getName, getSignaturepublic OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature)
构建了一个OpenMBeanConstructorInfoSupport实例,描述了一类具有指定的name开放MBean的构造函数,description和signature。
的signature数组参数内复制,使signature数组引用的后续变化对这种情况没有影响。
name -不能是null或空字符串。
description -不能是null或空字符串。
signature -可以是null或空如果没有参数描述。
IllegalArgumentException -如果
name或
description是null或空字符串。
ArrayStoreException -如果
signature不是对
MBeanParameterInfo子类实例的数组。
public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor)
构建了一个OpenMBeanConstructorInfoSupport实例,描述了一类开放MBean与指定的name,description,signature构造函数,和descriptor。
的signature数组参数内复制,使signature数组引用的后续变化对这种情况没有影响。
name -不能是null或空字符串。
description -不能是null或空字符串。
signature -可以是null或空如果没有参数描述。
descriptor为构造函数的描述符。这可能是空的,这相当于一个空的描述符。
IllegalArgumentException -如果
name或
description是null或空字符串。
ArrayStoreException -如果
signature不是对
MBeanParameterInfo子类实例的数组。
public boolean equals(Object obj)
比较指定的obj参数与本OpenMBeanConstructorInfoSupport实例为平等。
返回true当且仅当所有陈述是真实的:
obj非空,obj也实现了OpenMBeanConstructorInfo接口,equals法正常工作
obj参数的
OpenMBeanConstructorInfo接口的不同实现。
equals 接口
OpenMBeanConstructorInfo
equals 方法重写,继承类
MBeanConstructorInfo
obj要比较这
OpenMBeanConstructorInfoSupport平等的对象实例;
true指定对象是否等于这
OpenMBeanConstructorInfoSupport实例。
Object.hashCode(),
HashMap
public int hashCode()
返回此实例的哈希代码值OpenMBeanConstructorInfoSupport。
一个OpenMBeanConstructorInfoSupport实例的哈希代码是用的比较信息equals所有元素的散列码的总和(即:它的名字和签名,在签名的hashCode是通过调用java.util.Arrays.asList(this.getSignature).hashCode()计算)。
这确保t1.equals(t2)意味着t1.hashCode()==t2.hashCode()任何两OpenMBeanConstructorInfoSupport实例t1和t2,的方法Object.hashCode()一般合同要求。
但是,请注意,实现OpenMBeanConstructorInfo接口类的另一个实例可以等于这OpenMBeanConstructorInfoSupport实例定义的equals(java.lang.Object),但如果它的计算方式不同,有不同的哈希码。
作为OpenMBeanConstructorInfoSupport实例是不可变的,此实例的哈希代码是计算一次,在hashCode第一次调用,然后返回相同的值的后续调用。
hashCode 接口
OpenMBeanConstructorInfo
hashCode 方法重写,继承类
MBeanConstructorInfo
OpenMBeanConstructorInfoSupport实例的哈希代码值
Object.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)
public String toString()
返回该OpenMBeanConstructorInfoSupport实例的字符串表示形式。
字符串表示的类的名字(即javax.management.openmbean.OpenMBeanConstructorInfoSupport),其所描述的构造函数的名字和签名及其描述的字符串表示形式。
作为OpenMBeanConstructorInfoSupport实例是不可变的,此实例的字符串表示形式是计算一次,在toString第一次调用,然后返回相同的值的后续调用。
toString 接口
OpenMBeanConstructorInfo
toString 方法重写,继承类
MBeanConstructorInfo
OpenMBeanConstructorInfoSupport实例的字符串表示形式
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.