Attribute (Java SE 20 & JDK 20) (original) (raw)

All Implemented Interfaces:

[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io")


Represents an MBean attribute by associating its name with its value. The MBean server and other objects use this class to get and set attributes values.

Since:

1.5

See Also:

Constructors
Constructs an Attribute object which associates the given attribute name with the given value.

boolean
Compares the current Attribute Object with another Attribute Object.
[getName](#getName%28%29)()
Returns a String containing the name of the attribute.
[getValue](#getValue%28%29)()
Returns an Object that is the value of this attribute.
int
[hashCode](#hashCode%28%29)()
Returns a hash code value for this attribute.
[toString](#toString%28%29)()
Returns a String object representing this Attribute's value.