javax.management
Class MBeanFeatureInfo

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.MBeanFeatureInfo
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
Direct Known Subclasses:
MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo , MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo , MBeanNotificationInfo sample code for javax.management.MBeanNotificationInfo definition code for javax.management.MBeanNotificationInfo , MBeanOperationInfo sample code for javax.management.MBeanOperationInfo definition code for javax.management.MBeanOperationInfo , MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo

public class MBeanFeatureInfo
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Serializable sample code for java.io.Serializable definition code for java.io.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
See Also:
Serialized Form

Field Summary
protected  String sample code for java.lang.String definition code for java.lang.String description sample code for javax.management.MBeanFeatureInfo.description definition code for javax.management.MBeanFeatureInfo.description
          The human-readable description of the feature.
protected  String sample code for java.lang.String definition code for java.lang.String name sample code for javax.management.MBeanFeatureInfo.name definition code for javax.management.MBeanFeatureInfo.name
          The name of the feature.
 
Constructor Summary
MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo.MBeanFeatureInfo(java.lang.String, java.lang.String) definition code for javax.management.MBeanFeatureInfo.MBeanFeatureInfo(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description)
          Constructs an MBeanFeatureInfo object.
 
Method Summary
 boolean equals sample code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) definition code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  o)
          Compare this MBeanFeatureInfo to another.
 String sample code for java.lang.String definition code for java.lang.String getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() ()
          Returns the human-readable description of the feature.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName() ()
          Returns the name of the feature.
 int hashCode sample code for javax.management.MBeanFeatureInfo.hashCode() definition code for javax.management.MBeanFeatureInfo.hashCode() ()
          Returns a hash code value for the object.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

name sample code for javax.management.MBeanFeatureInfo.name

protected String sample code for java.lang.String definition code for java.lang.String  name
The name of the feature. It is recommended that subclasses call getName() sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName() rather than reading this field, and that they not change it.


description sample code for javax.management.MBeanFeatureInfo.description

protected String sample code for java.lang.String definition code for java.lang.String  description
The human-readable description of the feature. It is recommended that subclasses call getDescription() sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() rather than reading this field, and that they not change it.

Constructor Detail

MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo(java.lang.String, java.lang.String) definition code for javax.management.MBeanFeatureInfo(java.lang.String, java.lang.String)

public MBeanFeatureInfo(String sample code for java.lang.String definition code for java.lang.String  name,
                        String sample code for java.lang.String definition code for java.lang.String  description)
                 throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Constructs an MBeanFeatureInfo object.

Parameters:
name - The name of the feature.
description - A human readable description of the feature.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException
Method Detail

getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName()

public String sample code for java.lang.String definition code for java.lang.String  getName()
Returns the name of the feature.

Returns:
the name of the feature.

getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription()

public String sample code for java.lang.String definition code for java.lang.String  getDescription()
Returns the human-readable description of the feature.

Returns:
the human-readable description of the feature.

equals sample code for javax.management.MBeanFeatureInfo.equals(java.lang.Object) definition code for javax.management.MBeanFeatureInfo.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  o)
Compare this MBeanFeatureInfo to another.

Overrides:
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) in class Object sample code for java.lang.Object definition code for java.lang.Object
Parameters:
o - the object to compare to.
Returns:
true iff o is an MBeanFeatureInfo such that its getName() sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName() and getDescription() sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() values are equal (not necessarily identical) to those of this MBeanFeatureInfo.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.management.MBeanFeatureInfo.hashCode() definition code for javax.management.MBeanFeatureInfo.hashCode()

public int hashCode()
Description copied from class: Object sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)

Overrides:
hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a hash code value for this object.
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable