- 所有父级接口:
OpenMBeanParameterInfo
- 所有已知的实现类:
OpenMBeanAttributeInfoSupport
描述一个开放的 MBean 的属性。
此接口声明与类 MBeanAttributeInfo
相同的方法。实现此接口的类(通常为 OpenMBeanAttributeInfoSupport
)应扩展 MBeanAttributeInfo
。
- 自从:
- 1.5
-
方法总结
修饰符和类型方法描述boolean
比较指定的对象参数与此OpenMBeanAttributeInfo
实例相等。int
hashCode()
返回此OpenMBeanAttributeInfo
实例的哈希码值。boolean
isIs()
如果此OpenMBeanAttributeInfo
实例描述的属性通过isXXX
getter 访问(仅适用于boolean
和Boolean
值),则返回true
,否则返回false
。boolean
如果此OpenMBeanAttributeInfo
实例描述的属性可读,则返回true
,否则返回false
。boolean
如果此OpenMBeanAttributeInfo
实例描述的属性可写,则返回true
,否则返回false
。toString()
返回此OpenMBeanAttributeInfo
实例的字符串表示形式。在接口 javax.management.openmbean.OpenMBeanParameterInfo 中声明的方法
getDefaultValue, getDescription, getLegalValues, getMaxValue, getMinValue, getName, getOpenType, hasDefaultValue, hasLegalValues, hasMaxValue, hasMinValue, isValue
-
方法详情
-
isReadable
boolean isReadable()如果此OpenMBeanAttributeInfo
实例描述的属性可读,则返回true
,否则返回false
。- 返回:
- 如果属性可读,则为真。
-
isWritable
boolean isWritable()如果此OpenMBeanAttributeInfo
实例描述的属性可写,则返回true
,否则返回false
。- 返回:
- 如果属性是可写的,则为真。
-
isIs
boolean isIs()如果此OpenMBeanAttributeInfo
实例描述的属性通过isXXX
getter 访问(仅适用于boolean
和Boolean
值),则返回true
,否则返回false
。- 返回:
-
如果通过
isXXX
访问该属性,则为真。
-
equals
比较指定的对象参数与此OpenMBeanAttributeInfo
实例相等。当且仅当以下所有陈述都为真时,返回
true
:- 对象非空,
- 对象还实现了
OpenMBeanAttributeInfo
接口, - 他们的名字是平等的
- 它们的开放类型是相等的
- 它们的访问属性(isReadable、isWritable 和 isIs)相等
- 它们的默认值、最小值、最大值和合法值是相等的。
equals
方法适用于对象OpenMBeanAttributeInfo
接口的不同实现的参数。
- 指定者:
equals
在接口OpenMBeanParameterInfo
中- 重写:
equals
在类Object
中- 参数:
obj
- 要与此OpenMBeanAttributeInfo
实例进行相等比较的对象;- 返回:
true
如果指定对象等于此OpenMBeanAttributeInfo
实例。- 参见:
-
hashCode
int hashCode()返回此OpenMBeanAttributeInfo
实例的哈希码值。OpenMBeanAttributeInfo
实例的哈希码是equals
比较中使用的所有信息元素的哈希码的总和(即:它的名称,它的开放式,及其默认值、最小值、最大值和合法值)。这确保
t1.equals(t2)
暗示t1.hashCode()==t2.hashCode()
对于任何两个OpenMBeanAttributeInfo
实例t1
和t2
,正如方法Object.hashCode()
的一般契约所要求的那样。- 指定者:
hashCode
在接口OpenMBeanParameterInfo
中- 重写:
hashCode
在类Object
中- 返回:
-
此
OpenMBeanAttributeInfo
实例的哈希码值 - 参见:
-
toString
String toString()返回此OpenMBeanAttributeInfo
实例的字符串表示形式。字符串表示由此类的名称(即
javax.management.openmbean.OpenMBeanAttributeInfo
)、描述属性的名称和开放类型的字符串表示以及其默认值、最小值、最大值和合法值的字符串表示组成。- 指定者:
toString
在接口OpenMBeanParameterInfo
中- 重写:
toString
在类Object
中- 返回:
-
此
OpenMBeanAttributeInfo
实例的字符串表示形式
-