javax.management.openmbean
Interface OpenMBeanConstructorInfo

All Known Implementing Classes:
OpenMBeanConstructorInfoSupport sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport

public interface OpenMBeanConstructorInfo

Describes a constructor of an Open MBean.

This interface declares the same methods as the class MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo . A class implementing this interface (typically OpenMBeanConstructorInfoSupport sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport ) should extend MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo .

The getSignature() sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() method should return at runtime an array of instances of a subclass of MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo which implements the OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo interface (typically OpenMBeanParameterInfoSupport sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport ).

Since:
1.5

Method Summary
 boolean equals sample code for javax.management.openmbean.OpenMBeanConstructorInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanConstructorInfo.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares the specified obj parameter with this OpenMBeanConstructorInfo instance for equality.
 String sample code for java.lang.String definition code for java.lang.String getDescription sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription() ()
          Returns a human readable description of the constructor described by this OpenMBeanConstructorInfo instance.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getName() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getName() ()
          Returns the name of the constructor described by this OpenMBeanConstructorInfo instance.
 MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] getSignature sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() ()
          Returns an array of OpenMBeanParameterInfo instances describing each parameter in the signature of the constructor described by this OpenMBeanConstructorInfo instance.
 int hashCode sample code for javax.management.openmbean.OpenMBeanConstructorInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.hashCode() ()
          Returns the hash code value for this OpenMBeanConstructorInfo instance.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.openmbean.OpenMBeanConstructorInfo.toString() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.toString() ()
          Returns a string representation of this OpenMBeanConstructorInfo instance.
 

Method Detail

getDescription sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription()

String sample code for java.lang.String definition code for java.lang.String  getDescription()
Returns a human readable description of the constructor described by this OpenMBeanConstructorInfo instance.

Returns:
the description.

getName sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getName() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getName()

String sample code for java.lang.String definition code for java.lang.String  getName()
Returns the name of the constructor described by this OpenMBeanConstructorInfo instance.

Returns:
the name.

getSignature sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature()

MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo [] getSignature()
Returns an array of OpenMBeanParameterInfo instances describing each parameter in the signature of the constructor described by this OpenMBeanConstructorInfo instance.

Returns:
the signature.

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

boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares the specified obj parameter with this OpenMBeanConstructorInfo instance for equality.

Returns true if and only if all of the following statements are true:

This ensures that this equals method works properly for obj parameters which are different implementations of the OpenMBeanConstructorInfo interface.
 

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:
obj - the object to be compared for equality with this OpenMBeanConstructorInfo instance;
Returns:
true if the specified object is equal to this OpenMBeanConstructorInfo instance.
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.openmbean.OpenMBeanConstructorInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.hashCode()

int hashCode()
Returns the hash code value for this OpenMBeanConstructorInfo instance.

The hash code of an OpenMBeanConstructorInfo instance is the sum of the hash codes of all elements of information used in equals comparisons (ie: its name and signature, where the signature hashCode is calculated by a call to java.util.Arrays.asList(this.getSignature).hashCode()).

This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two OpenMBeanConstructorInfo instances t1 and t2, as required by the general contract of the method Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() .

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:
the hash code value for this OpenMBeanConstructorInfo instance
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

toString sample code for javax.management.openmbean.OpenMBeanConstructorInfo.toString() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.toString()

String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this OpenMBeanConstructorInfo instance.

The string representation consists of the name of this class (ie javax.management.openmbean.OpenMBeanConstructorInfo), and the name and signature of the described constructor.

Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this OpenMBeanConstructorInfo instance