javax.management.openmbean
Class OpenMBeanConstructorInfoSupport

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo 
      extended by javax.management.MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo 
          extended by javax.management.openmbean.OpenMBeanConstructorInfoSupport
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo

public class OpenMBeanConstructorInfoSupport
extends MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo
implements OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Describes a constructor of an Open MBean.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
description sample code for javax.management.MBeanFeatureInfo.description definition code for javax.management.MBeanFeatureInfo.description , name sample code for javax.management.MBeanFeatureInfo.name definition code for javax.management.MBeanFeatureInfo.name
 
Constructor Summary
OpenMBeanConstructorInfoSupport sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.OpenMBeanConstructorInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenMBeanParameterInfo[]) definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.OpenMBeanConstructorInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenMBeanParameterInfo[]) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo [] signature)
          Constructs an OpenMBeanConstructorInfoSupport instance, which describes the constructor of a class of open MBeans with the specified name, description and signature.
 
Method Summary
 boolean equals sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.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 OpenMBeanConstructorInfoSupport instance for equality.
 int hashCode sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.hashCode() ()
          Returns the hash code value for this OpenMBeanConstructorInfoSupport instance.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.toString() ()
          Returns a string representation of this OpenMBeanConstructorInfoSupport instance.
 
Methods inherited from class javax.management.MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo
clone sample code for javax.management.MBeanConstructorInfo.clone() definition code for javax.management.MBeanConstructorInfo.clone() , getSignature sample code for javax.management.MBeanConstructorInfo.getSignature() definition code for javax.management.MBeanConstructorInfo.getSignature()
 
Methods inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.management.openmbean.OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo
getDescription sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getDescription() , getName sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getName() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getName() , getSignature sample code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.getSignature()
 

Constructor Detail

OpenMBeanConstructorInfoSupport sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenMBeanParameterInfo[]) definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenMBeanParameterInfo[])

public OpenMBeanConstructorInfoSupport(String sample code for java.lang.String definition code for java.lang.String  name,
                                       String sample code for java.lang.String definition code for java.lang.String  description,
                                       OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo [] signature)
Constructs an OpenMBeanConstructorInfoSupport instance, which describes the constructor of a class of open MBeans with the specified name, description and signature.

The signature array parameter is internally copied, so that subsequent changes to the array referenced by signature have no effect on this instance.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
signature - can be null or empty if there are no parameters to describe.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name or description are null or empty string.
ArrayStoreException sample code for java.lang.ArrayStoreException definition code for java.lang.ArrayStoreException - If signature is not an array of instances of a subclass of MBeanParameterInfo.
Method Detail

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

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares the specified obj parameter with this OpenMBeanConstructorInfoSupport 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.
 

Specified by:
equals sample code for javax.management.openmbean.OpenMBeanConstructorInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanConstructorInfo.equals(java.lang.Object) in interface OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo
Overrides:
equals sample code for javax.management.MBeanConstructorInfo.equals(java.lang.Object) definition code for javax.management.MBeanConstructorInfo.equals(java.lang.Object) in class MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo
Parameters:
obj - the object to be compared for equality with this OpenMBeanConstructorInfoSupport instance;
Returns:
true if the specified object is equal to this OpenMBeanConstructorInfoSupport 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.OpenMBeanConstructorInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.hashCode()

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

The hash code of an OpenMBeanConstructorInfoSupport 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 OpenMBeanConstructorInfoSupport 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() .

However, note that another instance of a class implementing the OpenMBeanConstructorInfo interface may be equal to this OpenMBeanConstructorInfoSupport instance as defined by equals(java.lang.Object) sample code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.equals(java.lang.Object) , but may have a different hash code if it is calculated differently.

As OpenMBeanConstructorInfoSupport instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls.

Specified by:
hashCode sample code for javax.management.openmbean.OpenMBeanConstructorInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.hashCode() in interface OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo
Overrides:
hashCode sample code for javax.management.MBeanConstructorInfo.hashCode() definition code for javax.management.MBeanConstructorInfo.hashCode() in class MBeanConstructorInfo sample code for javax.management.MBeanConstructorInfo definition code for javax.management.MBeanConstructorInfo
Returns:
the hash code value for this OpenMBeanConstructorInfoSupport 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.OpenMBeanConstructorInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanConstructorInfoSupport.toString()

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

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

As OpenMBeanConstructorInfoSupport instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls.

Specified by:
toString sample code for javax.management.openmbean.OpenMBeanConstructorInfo.toString() definition code for javax.management.openmbean.OpenMBeanConstructorInfo.toString() in interface OpenMBeanConstructorInfo sample code for javax.management.openmbean.OpenMBeanConstructorInfo definition code for javax.management.openmbean.OpenMBeanConstructorInfo
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 OpenMBeanConstructorInfoSupport instance