|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.Attribute
An MBean attribute which is a name value pair combination.
Constructor Summary | |
Attribute(java.lang.String name,
java.lang.Object value)
Creates an Attribute with the given name and value. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks the given obj for equality with this Attribute . |
java.lang.String |
getName()
Return the name of this Attribute . |
java.lang.Object |
getValue()
Returns the value of this Attribute . |
int |
hashCode()
Returns the hashCode |
java.lang.String |
toString()
Returns a String representation of this Attribtue . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Attribute(java.lang.String name, java.lang.Object value)
Note: The value of name cant be null.
name
- The name of the attributevalue
- The value of the attribute
RuntimeOperationsException
- Wraps an IllegalArgumentException if the
value of name is null.Method Detail |
public boolean equals(java.lang.Object obj)
Attribute
.
obj
- The object being checked against.
Attribute
, false otherwise.public int hashCode()
public java.lang.String getName()
Attribute
.
public java.lang.Object getValue()
Attribute
.
public java.lang.String toString()
Attribtue
.
Representation is in the form: Attribute's name: n, value: v
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |