FileDocCategorySizeDatePackage
MBeanFeatureInfo.javaAPI DocJava SE 5 API2703Fri Aug 26 14:57:32 BST 2005javax.management

MBeanFeatureInfo

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.

    
    
                                  
        
	      
	this.name = name;    
	this.description = description;
    
Methods Summary
public booleanequals(java.lang.Object o)
Compare this MBeanFeatureInfo to another.

param
o the object to compare to.
return
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()));
    
public java.lang.StringgetDescription()
Returns the human-readable description of the feature.

return
the human-readable description of the feature.

	return description;
    
public java.lang.StringgetName()
Returns the name of the feature.

return
the name of the feature.

	return name;
    
public inthashCode()

	return getName().hashCode() ^ getDescription().hashCode();