public interface OpenMBeanAttributeInfo extends OpenMBeanParameterInfo
介绍了一个开放的MBean属性。
这个接口声明相同的方法,MBeanAttributeInfo
类。实现此接口的类(通常OpenMBeanAttributeInfoSupport
)应延长MBeanAttributeInfo
。
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
比较指定的
obj参数与本
OpenMBeanAttributeInfo 实例为平等。
|
int |
hashCode()
返回此实例的哈希代码值
OpenMBeanAttributeInfo 。
|
boolean |
isIs()
返回
true如果属性的
OpenMBeanAttributeInfo实例描述了通过
isXXX getter访问(仅适用于
boolean和
Boolean值),
false否则。
|
boolean |
isReadable()
返回
true如果属性的
OpenMBeanAttributeInfo实例描述的是可读的,
false否则。
|
boolean |
isWritable()
返回
true如果属性的
OpenMBeanAttributeInfo实例描述是可写的,
false否则。
|
String |
toString()
返回该
OpenMBeanAttributeInfo 实例的字符串表示形式。
|
getDefaultValue, getDescription, getLegalValues, getMaxValue, getMinValue, getName, getOpenType, hasDefaultValue, hasLegalValues, hasMaxValue, hasMinValue, isValue
boolean isReadable()
boolean isWritable()
boolean isIs()
boolean equals(Object obj)
OpenMBeanAttributeInfo
实例为平等。
返回true当且仅当所有陈述是真实的:
OpenMBeanAttributeInfo
接口,OpenMBeanAttributeInfo
接口的不同实现。
equals
接口
OpenMBeanParameterInfo
equals
方法重写,继承类
Object
obj
要比较这
OpenMBeanAttributeInfo
平等的对象实例;
true
指定对象是否等于这
OpenMBeanAttributeInfo
实例。
Object.hashCode()
,
HashMap
int hashCode()
OpenMBeanAttributeInfo
。
一个OpenMBeanAttributeInfo
实例的哈希代码是用的比较信息equals
所有元素的散列码的总和(即:它的名字,它的开放式,其默认,min,max和法律价值)。
这确保 t1.equals(t2)
意味着 t1.hashCode()==t2.hashCode()
任何两OpenMBeanAttributeInfo
实例t1
和t2
,的方法Object.hashCode()
一般合同要求。
hashCode
接口
OpenMBeanParameterInfo
hashCode
方法重写,继承类
Object
OpenMBeanAttributeInfo
实例的哈希代码值
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
String toString()
OpenMBeanAttributeInfo
实例的字符串表示形式。
字符串表示的类的名字(即javax.management.openmbean.OpenMBeanAttributeInfo
),这个名字和描述属性的开放式的字符串表示形式,和字符串表示默认,min,max和法律价值。
toString
接口
OpenMBeanParameterInfo
toString
方法重写,继承类
Object
OpenMBeanAttributeInfo
实例的字符串表示形式
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.