src/share/classes/javax/management/openmbean/OpenMBeanInfo.java

Print this page




 151      * <br>&nbsp;
 152      * @param  obj  the object to be compared for equality with this <code>OpenMBeanInfo</code> instance;
 153      *
 154      * @return  <code>true</code> if the specified object is equal to this <code>OpenMBeanInfo</code> instance.
 155      */
 156     public boolean equals(Object obj);
 157 
 158     /**
 159      * Returns the hash code value for this <code>OpenMBeanInfo</code> instance.
 160      * <p>
 161      * The hash code of an <code>OpenMBeanInfo</code> instance is the sum of the hash codes
 162      * of all elements of information used in <code>equals</code> comparisons
 163      * (ie: its class name, and its infos on attributes, constructors, operations and notifications,
 164      * where the hashCode of each of these arrays is calculated by a call to
 165      *  <tt>new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode()</tt>).
 166      * <p>
 167      * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
 168      * for any two <code>OpenMBeanInfo</code> instances <code>t1</code> and <code>t2</code>,
 169      * as required by the general contract of the method
 170      * {@link Object#hashCode() Object.hashCode()}.
 171      * <p>
 172      *
 173      * @return  the hash code value for this <code>OpenMBeanInfo</code> instance
 174      */
 175     public int hashCode();
 176 
 177     /**
 178      * Returns a string representation of this <code>OpenMBeanInfo</code> instance.
 179      * <p>
 180      * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanInfo</code>),
 181      * the MBean class name,
 182      * and the string representation of infos on attributes, constructors, operations and notifications of the described MBean.
 183      *
 184      * @return  a string representation of this <code>OpenMBeanInfo</code> instance
 185      */
 186     public String toString();
 187 
 188 }


 151      * <br>&nbsp;
 152      * @param  obj  the object to be compared for equality with this <code>OpenMBeanInfo</code> instance;
 153      *
 154      * @return  <code>true</code> if the specified object is equal to this <code>OpenMBeanInfo</code> instance.
 155      */
 156     public boolean equals(Object obj);
 157 
 158     /**
 159      * Returns the hash code value for this <code>OpenMBeanInfo</code> instance.
 160      * <p>
 161      * The hash code of an <code>OpenMBeanInfo</code> instance is the sum of the hash codes
 162      * of all elements of information used in <code>equals</code> comparisons
 163      * (ie: its class name, and its infos on attributes, constructors, operations and notifications,
 164      * where the hashCode of each of these arrays is calculated by a call to
 165      *  <tt>new java.util.HashSet(java.util.Arrays.asList(this.getSignature)).hashCode()</tt>).
 166      * <p>
 167      * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
 168      * for any two <code>OpenMBeanInfo</code> instances <code>t1</code> and <code>t2</code>,
 169      * as required by the general contract of the method
 170      * {@link Object#hashCode() Object.hashCode()}.

 171      *
 172      * @return  the hash code value for this <code>OpenMBeanInfo</code> instance
 173      */
 174     public int hashCode();
 175 
 176     /**
 177      * Returns a string representation of this <code>OpenMBeanInfo</code> instance.
 178      * <p>
 179      * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanInfo</code>),
 180      * the MBean class name,
 181      * and the string representation of infos on attributes, constructors, operations and notifications of the described MBean.
 182      *
 183      * @return  a string representation of this <code>OpenMBeanInfo</code> instance
 184      */
 185     public String toString();
 186 
 187 }