| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.Attribute
public class Attribute
通过将 MBean 属性名与其值相关联来表示 MBean 属性。MBean 服务器和其他对象使用此类来获得并设置属性值。
| 构造方法摘要 | |
|---|---|
Attribute(String name,
          Object value)
构造将给定的属性名与给定值相关联的 Attribute 对象。  | 
|
| 方法摘要 | |
|---|---|
 boolean | 
equals(Object object)
比较当前的 Attribute Object 与另一个 Attribute Object。  | 
 String | 
getName()
返回包含该 Attribute 的名称的 String。  | 
 Object | 
getValue()
返回此 Attribute 值的 Object。  | 
 int | 
hashCode()
返回此属性的哈希码值。  | 
 String | 
toString()
返回一个表示此 Attribute 值 String 对象。  | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public Attribute(String name,
                 Object value)
name - 一个 String,包含要创建的属性的名称。不可以为 null。value - 分配给属性的 Object。此对象必须与该属性的类型相同。| 方法详细信息 | 
|---|
public String getName()
public Object getValue()
public boolean equals(Object object)
Object 中的 equalsobject - 要与当前 Attribute 进行比较的 Attribute。
Object.hashCode(), 
Hashtablepublic int hashCode()
Object 中的 hashCodeObject.equals(java.lang.Object), 
Hashtablepublic String toString()
Object 中的 toString
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。