- 所有已实现的接口:
Serializable
,Cloneable
,DescriptorRead
,OpenMBeanConstructorInfo
- 自从:
- 1.5
- 参见:
-
字段摘要
在类 javax.management.MBeanFeatureInfo 中声明的字段
description, name
-
构造方法总结
构造方法构造方法描述OpenMBeanConstructorInfoSupport
(String name, String description, OpenMBeanParameterInfo[] signature) 构造一个OpenMBeanConstructorInfoSupport
实例,它描述了具有指定name
、description
和signature
的开放式 MBean 类的构造函数。OpenMBeanConstructorInfoSupport
(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor) 构造一个OpenMBeanConstructorInfoSupport
实例,它描述了具有指定name
、description
、signature
和descriptor
的开放式 MBean 类的构造函数。 -
方法总结
在类 javax.management.MBeanConstructorInfo 中声明的方法
clone, getSignature
在类 javax.management.MBeanFeatureInfo 中声明的方法
getDescription, getDescriptor, getName
在接口 javax.management.openmbean.OpenMBeanConstructorInfo 中声明的方法
getDescription, getName, getSignature
-
构造方法详细信息
-
OpenMBeanConstructorInfoSupport
public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo [] signature) 构造一个
OpenMBeanConstructorInfoSupport
实例,它描述了具有指定name
、description
和signature
的开放式 MBean 类的构造函数。signature
数组参数在内部复制,因此对signature
引用的数组的后续更改对此实例没有影响。- 参数:
name
- 不能为 null 或空字符串。description
- 不能为 null 或空字符串。signature
- 如果没有要描述的参数,则可以为 null 或空。- 抛出:
IllegalArgumentException
- 如果name
或description
为 null 或空字符串。ArrayStoreException
- 如果signature
不是MBeanParameterInfo
子类的实例数组。
-
OpenMBeanConstructorInfoSupport
public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo [] signature, Descriptor descriptor) 构造一个
OpenMBeanConstructorInfoSupport
实例,它描述了具有指定name
、description
、signature
和descriptor
的开放式 MBean 类的构造函数。signature
数组参数在内部复制,因此对signature
引用的数组的后续更改对此实例没有影响。- 参数:
name
- 不能为 null 或空字符串。description
- 不能为 null 或空字符串。signature
- 如果没有要描述的参数,则可以为 null 或空。descriptor
- 构造函数的描述符。这可能是空的,相当于一个空的描述符。- 抛出:
IllegalArgumentException
- 如果name
或description
为 null 或空字符串。ArrayStoreException
- 如果signature
不是MBeanParameterInfo
子类的实例数组。- 自从:
- 1.6
-
-
方法详情
-
equals
比较指定的
obj
参数与此OpenMBeanConstructorInfoSupport
实例是否相等。当且仅当以下所有陈述都为真时,返回
true
:obj
非空,obj
还实现了OpenMBeanConstructorInfo
接口,- 他们的名字是平等的
- 他们的签名是平等的。
equals
方法适用于obj
参数,这些参数是OpenMBeanConstructorInfo
接口的不同实现。- 指定者:
equals
在接口OpenMBeanConstructorInfo
中- 重写:
equals
在类MBeanConstructorInfo
中- 参数:
obj
- 要与此OpenMBeanConstructorInfoSupport
实例进行相等比较的对象;- 返回:
true
如果指定对象等于此OpenMBeanConstructorInfoSupport
实例。- 参见:
-
hashCode
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
接口的类的另一个实例可能等于equals(java.lang.Object)
定义的这个OpenMBeanConstructorInfoSupport
实例,但如果计算方式不同,则可能具有不同的哈希码。由于
OpenMBeanConstructorInfoSupport
实例是不可变的,因此该实例的哈希码在第一次调用hashCode
时计算一次,然后为后续调用返回相同的值。- 指定者:
hashCode
在接口OpenMBeanConstructorInfo
中- 重写:
hashCode
在类Object
中- 返回:
-
此
OpenMBeanConstructorInfoSupport
实例的哈希码值 - 参见:
-
toString
返回此
OpenMBeanConstructorInfoSupport
实例的字符串表示形式。字符串表示由此类的名称(即
javax.management.openmbean.OpenMBeanConstructorInfoSupport
)、所描述的构造函数的名称和签名以及其描述符的字符串表示组成。由于
OpenMBeanConstructorInfoSupport
实例是不可变的,因此该实例的字符串表示在第一次调用toString
时计算一次,然后为后续调用返回相同的值。- 指定者:
toString
在接口OpenMBeanConstructorInfo
中- 重写:
toString
在类Object
中- 返回:
-
此
OpenMBeanConstructorInfoSupport
实例的字符串表示形式
-