public class MBeanFeatureInfo extends java.lang.Object implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
description
A description of the feature in human-readable form.
|
protected java.lang.String |
name
The name of the feature.
|
| Constructor and Description |
|---|
MBeanFeatureInfo(java.lang.String name,
java.lang.String description)
Constructs a new
MBeanFeatureInfo with the specified
name and description. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this feature with the supplied object.
|
java.lang.String |
getDescription()
Returns a description of this feature.
|
java.lang.String |
getName()
Returns the name of this feature.
|
int |
hashCode()
Returns the hashcode of the feature as
the sum of the hashcodes of its name
and description.
|
java.lang.String |
toString()
Returns a textual representation of this instance.
|
protected java.lang.String description
getDescription()
function rather than using the value directly.public MBeanFeatureInfo(java.lang.String name, java.lang.String description)
MBeanFeatureInfo with the specified
name and description.name - the name of the management bean feature.description - the description of the feature.public boolean equals(java.lang.Object obj)
MBeanFeatureInfo and Object#equals()
returns true for a comparison of both the name and
description of this feature with that of the specified
object.equals in class java.lang.Objectobj - the object to compare.MBeanFeatureInfo
instance,
name.equals(object.getName()) and
description.equals(object.getDescription.Object.hashCode()public java.lang.String getDescription()
public java.lang.String getName()
public int hashCode()
hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(Object)public java.lang.String toString()
Returns a textual representation of this instance. This
is constructed using the class name
(javax.management.MBeanFeatureInfo) and
the name and description of the feature.
As instances of this class are immutable, the return value is computed just once for each instance and reused throughout its life.
toString in class java.lang.ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)