|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.MBeanFeatureInfo
public class MBeanFeatureInfo
A general superclass for the description of features of management beans. This allows the user to access the feature dynamically, without knowing the details beforehand. The information is immutable as standard. Of course, subclasses may change this, but this behaviour is not recommended.
Field Summary | |
---|---|
protected String |
description
A description of the feature in human-readable form. |
protected String |
name
The name of the feature. |
Constructor Summary | |
---|---|
MBeanFeatureInfo(String name,
String description)
Constructs a new MBeanFeatureInfo with the specified
name and description. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares this feature with the supplied object. |
String |
getDescription()
Returns a description of this feature. |
String |
getName()
Returns the name of this feature. |
int |
hashCode()
Returns the hashcode of the feature as the sum of the hashcodes of its name and description. |
String |
toString()
Returns a textual representation of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String description
getDescription()
function rather than using the value directly.
protected String name
getName()
function rather than using the
value directly.
Constructor Detail |
---|
public MBeanFeatureInfo(String name, String description)
MBeanFeatureInfo
with the specified
name and description.
name
- the name of the management bean feature.description
- the description of the feature.Method Detail |
---|
public boolean equals(Object obj)
MBeanFeatureInfo
and Object#equals()
returns true for a comparison of both the name and
description of this feature with that of the specified
object.
equals
in class Object
obj
- the object to compare.
MBeanFeatureInfo
instance,
name.equals(object.getName())
and
description.equals(object.getDescription
.Object.hashCode()
public String getDescription()
public String getName()
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public String toString()
Returns a textual representation of this instance. This
is constructed using the class name
(javax.management.MBeanFeatureInfo
) and
the name and description of the feature.
As instances of this class are immutable, the return value is computed just once for each instance and reused throughout its life.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |