|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.Attribute
public class Attribute
Represents an MBean attribute, having the name and the assigned value. The MBean objects use this class to get and set attributes values.
Constructor Summary | |
---|---|
Attribute(String name,
Object value)
Create the attribute with the given name and value. |
Method Summary | |
---|---|
boolean |
equals(Object other)
Compares the attribute with another attribute. |
String |
getName()
Returns the attribute name. |
Object |
getValue()
Returns the attribute value. |
int |
hashCode()
Need to override as equals(java.lang.Object) is overridden. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attribute(String name, Object value)
name
- the attribute namevalue
- the attribute valueMethod Detail |
---|
public boolean equals(Object other)
equals
in class Object
other
- the other object to compare with
Object.hashCode()
public String getName()
public Object getValue()
public int hashCode()
equals(java.lang.Object)
is overridden.
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |