public class MBeanFeatureInfo extends Object implements Serializable
Provides general information for an MBean descriptor object.
The feature described can be an attribute, an operation, a
parameter, or a notification. Instances of this class are
immutable. Subclasses may be mutable but this is not
recommended.
since
1.5
Fields Summary
static final long
serialVersionUID
protected String
name
The name of the feature. It is recommended that subclasses call
{@link #getName} rather than reading this field, and that they
not change it.
protected String
description
The human-readable description of the feature. It is
recommended that subclasses call {@link #getDescription} rather
than reading this field, and that they not change it.
Constructors Summary
public MBeanFeatureInfo(String name, String description)
Constructs an MBeanFeatureInfo object.
param
name The name of the feature.
param
description A human readable description of the feature.
true iff o is an MBeanFeatureInfo such
that its {@link #getName()} and {@link #getDescription()}
values are equal (not necessarily identical) to those of this
MBeanFeatureInfo.
if (o == this)
return true;
if (!(o instanceof MBeanFeatureInfo))
return false;
MBeanFeatureInfo p = (MBeanFeatureInfo) o;
return (p.getName().equals(getName()) &&
p.getDescription().equals(getDescription()));