java.lang.Objectjavax.management.MBeanInfo
javax.management.openmbean.OpenMBeanInfoSupport
All Implemented Interfaces:
OpenMBeanInfo, Cloneable, DescriptorRead, java$io$Serializable
1.5
- Field Summary | ||
---|---|---|
static final long | serialVersionUID |
Fields inherited from javax.management.MBeanInfo: |
---|
serialVersionUID |
Constructor: |
---|
Constructs an {@code OpenMBeanInfoSupport} instance, which describes a class of open MBeans with the specified {@code className}, {@code description}, {@code openAttributes}, {@code openConstructors} , {@code openOperations} and {@code notifications}. The {@code openAttributes}, {@code openConstructors}, {@code openOperations} and {@code notifications} array parameters are internally copied, so that subsequent changes to the arrays referenced by these parameters have no effect on this instance.
|
Constructs an {@code OpenMBeanInfoSupport} instance, which describes a class of open MBeans with the specified {@code className}, {@code description}, {@code openAttributes}, {@code openConstructors} , {@code openOperations}, {@code notifications}, and {@code descriptor}. The {@code openAttributes}, {@code openConstructors}, {@code openOperations} and {@code notifications} array parameters are internally copied, so that subsequent changes to the arrays referenced by these parameters have no effect on this instance.
|
Method from javax.management.openmbean.OpenMBeanInfoSupport Summary: |
---|
equals, hashCode, toString |
Methods from javax.management.MBeanInfo: |
---|
arrayGettersSafe, clone, equals, getAttributes, getClassName, getConstructors, getDescription, getDescriptor, getNotifications, getOperations, hashCode, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.management.openmbean.OpenMBeanInfoSupport Detail: |
---|
Compares the specified {@code obj} parameter with this {@code OpenMBeanInfoSupport} instance for equality. Returns {@code true} if and only if all of the following statements are true: |
Returns the hash code value for this {@code OpenMBeanInfoSupport} instance. The hash code of an {@code OpenMBeanInfoSupport} instance is the sum of the hash codes of all elements of information used in {@code equals} comparisons (ie: its class name, and its infos on attributes, constructors, operations and notifications, where the hashCode of each of these arrays is calculated by a call to {@code new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode()}). This ensures that {@code t1.equals(t2)} implies that {@code t1.hashCode()==t2.hashCode()} for any two {@code OpenMBeanInfoSupport} instances {@code t1} and {@code t2}, as required by the general contract of the method Object.hashCode() . However, note that another instance of a class implementing the {@code OpenMBeanInfo} interface may be equal to this {@code OpenMBeanInfoSupport} instance as defined by #equals(java.lang.Object) , but may have a different hash code if it is calculated differently. As {@code OpenMBeanInfoSupport} instances are immutable, the hash code for this instance is calculated once, on the first call to {@code hashCode}, and then the same value is returned for subsequent calls. |
Returns a string representation of this {@code OpenMBeanInfoSupport} instance. The string representation consists of the name of this class (ie {@code javax.management.openmbean.OpenMBeanInfoSupport}), the MBean class name, the string representation of infos on attributes, constructors, operations and notifications of the described MBean and the string representation of the descriptor. As {@code OpenMBeanInfoSupport} instances are immutable, the string representation for this instance is calculated once, on the first call to {@code toString}, and then the same value is returned for subsequent calls. |