MBeanParameterInfopublic class MBeanParameterInfo extends MBeanFeatureInfo implements CloneableDescribes an argument of an operation exposed by an MBean.
Instances of this class are immutable. Subclasses may be mutable
but this is not recommended. |
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 an MBeanParameterInfo object.
this(name, type, description, (Descriptor) null);
| public MBeanParameterInfo(String name, String type, String description, Descriptor descriptor)Constructs an MBeanParameterInfo object.
super(name, description, descriptor);
this.type = type;
|
Methods Summary |
---|
public java.lang.Object | clone()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 boolean | equals(java.lang.Object o)Compare this MBeanParameterInfo to another.
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()) &&
p.getDescriptor().equals(getDescriptor()));
| public java.lang.String | getType()Returns the type or class name of the data.
return type;
| public int | hashCode()
return getName().hashCode() ^ getType().hashCode();
| public java.lang.String | toString()
return
getClass().getName() + "[" +
"description=" + getDescription() + ", " +
"name=" + getName() + ", " +
"type=" + getType() + ", " +
"descriptor=" + getDescriptor() +
"]";
|
|