public class MBeanParameterInfo extends MBeanFeatureInfo implements Cloneable
description, name
Constructor and Description |
---|
MBeanParameterInfo(String name,
String type,
String description)
Constructs an
MBeanParameterInfo object. |
MBeanParameterInfo(String name,
String type,
String description,
Descriptor descriptor)
Constructs an
MBeanParameterInfo object. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a shallow clone of this instance.
|
boolean |
equals(Object o)
Compare this MBeanParameterInfo to another.
|
String |
getType()
Returns the type or class name of the data.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
String |
toString()
Answers a string containing a concise, human-readable
description of the receiver.
|
getDescription, getDescriptor, getName
public MBeanParameterInfo(String name, String type, String description)
MBeanParameterInfo
object.name
- The name of the datatype
- The type or class name of the datadescription
- A human readable description of the data. Optional.public MBeanParameterInfo(String name, String type, String description, Descriptor descriptor)
MBeanParameterInfo
object.name
- The name of the datatype
- The type or class name of the datadescription
- A human readable description of the data. Optional.descriptor
- The descriptor for the operation. This may be null
which is equivalent to an empty descriptor.public 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.
public String getType()
public String toString()
Object
public boolean equals(Object o)
equals
in class MBeanFeatureInfo
o
- the object to compare to.o
is an MBeanParameterInfo such
that its MBeanFeatureInfo.getName()
, getType()
,
MBeanFeatureInfo.getDescriptor()
, and MBeanFeatureInfo.getDescription()
values are equal (not necessarily identical)
to those of this MBeanParameterInfo.Object.hashCode()
public int hashCode()
Object
true
when passed to
.equals
must answer the same value for this
method.hashCode
in class MBeanFeatureInfo
Object.equals(java.lang.Object)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.