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

MBeanParameterInfo

public class MBeanParameterInfo extends MBeanFeatureInfo implements Cloneable, Serializable
Describes an argument of an operation exposed by an MBean. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.
since
1.5

Fields Summary
static final long
serialVersionUID
static final MBeanParameterInfo[]
NO_PARAMS
private final String
type
Constructors Summary
public MBeanParameterInfo(String name, String type, String description)
Constructs a MBeanParameterInfo object.

param
name The name of the data
param
type The type or class name of the data
param
description A human readable description of the data. Optional.

     
   
                                        
      
			       
			       
	      
	
	super(name, description);

	this.type = type;
    
Methods Summary
public java.lang.Objectclone()

Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made.

Since this class is immutable, cloning is chiefly of interest to subclasses.

	 try {
	     return  super.clone() ;
	 } catch (CloneNotSupportedException e) {
	     // should not happen as this class is cloneable
	     return null;
	 }
     
public booleanequals(java.lang.Object o)
Compare this MBeanParameterInfo to another.

param
o the object to compare to.
return
true iff o is an MBeanParameterInfo such that its {@link #getName()}, {@link #getType()}, and {@link #getDescription()} values are equal (not necessarily identical) to those of this MBeanParameterInfo.

	if (o == this)
	    return true;
	if (!(o instanceof MBeanParameterInfo))
	    return false;
	MBeanParameterInfo p = (MBeanParameterInfo) o;
	return (p.getName().equals(getName()) &&
		p.getType().equals(getType()) &&
		p.getDescription().equals(getDescription()));
    
public java.lang.StringgetType()
Returns the type or class name of the data.

return
the type string.

	return type;
    
public inthashCode()

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