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, isValueboolean 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.