public class MBeanFeatureInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
description
A description of the feature in human-readable form.
|
protected String |
name
The name of the feature.
|
Constructor and Description |
---|
MBeanFeatureInfo(String name,
String description)
Constructs a new
MBeanFeatureInfo with the specified
name and description. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares this feature with the supplied object.
|
String |
getDescription()
Returns a description of this feature.
|
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.
|
String |
toString()
Returns a textual representation of this instance.
|
protected String description
getDescription()
function rather than using the value directly.public MBeanFeatureInfo(String name, 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(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 Object
obj
- the object to compare.MBeanFeatureInfo
instance,
name.equals(object.getName())
and
description.equals(object.getDescription
.Object.hashCode()
public String getDescription()
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public 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 Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)