101 * different implementations of the <code>OpenMBeanConstructorInfo</code> interface.
102 * <br>
103 * @param obj the object to be compared for equality with this <code>OpenMBeanConstructorInfo</code> instance;
104 *
105 * @return <code>true</code> if the specified object is equal to this <code>OpenMBeanConstructorInfo</code> instance.
106 */
107 public boolean equals(Object obj);
108
109 /**
110 * Returns the hash code value for this <code>OpenMBeanConstructorInfo</code> instance.
111 * <p>
112 * The hash code of an <code>OpenMBeanConstructorInfo</code> instance is the sum of the hash codes
113 * of all elements of information used in <code>equals</code> comparisons
114 * (ie: its name and signature, where the signature hashCode is calculated by a call to
115 * <tt>java.util.Arrays.asList(this.getSignature).hashCode()</tt>).
116 * <p>
117 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
118 * for any two <code>OpenMBeanConstructorInfo</code> instances <code>t1</code> and <code>t2</code>,
119 * as required by the general contract of the method
120 * {@link Object#hashCode() Object.hashCode()}.
121 * <p>
122 *
123 * @return the hash code value for this <code>OpenMBeanConstructorInfo</code> instance
124 */
125 public int hashCode();
126
127 /**
128 * Returns a string representation of this <code>OpenMBeanConstructorInfo</code> instance.
129 * <p>
130 * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanConstructorInfo</code>),
131 * and the name and signature of the described constructor.
132 *
133 * @return a string representation of this <code>OpenMBeanConstructorInfo</code> instance
134 */
135 public String toString();
136
137 }
|
101 * different implementations of the <code>OpenMBeanConstructorInfo</code> interface.
102 * <br>
103 * @param obj the object to be compared for equality with this <code>OpenMBeanConstructorInfo</code> instance;
104 *
105 * @return <code>true</code> if the specified object is equal to this <code>OpenMBeanConstructorInfo</code> instance.
106 */
107 public boolean equals(Object obj);
108
109 /**
110 * Returns the hash code value for this <code>OpenMBeanConstructorInfo</code> instance.
111 * <p>
112 * The hash code of an <code>OpenMBeanConstructorInfo</code> instance is the sum of the hash codes
113 * of all elements of information used in <code>equals</code> comparisons
114 * (ie: its name and signature, where the signature hashCode is calculated by a call to
115 * <tt>java.util.Arrays.asList(this.getSignature).hashCode()</tt>).
116 * <p>
117 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
118 * for any two <code>OpenMBeanConstructorInfo</code> instances <code>t1</code> and <code>t2</code>,
119 * as required by the general contract of the method
120 * {@link Object#hashCode() Object.hashCode()}.
121 *
122 * @return the hash code value for this <code>OpenMBeanConstructorInfo</code> instance
123 */
124 public int hashCode();
125
126 /**
127 * Returns a string representation of this <code>OpenMBeanConstructorInfo</code> instance.
128 * <p>
129 * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanConstructorInfo</code>),
130 * and the name and signature of the described constructor.
131 *
132 * @return a string representation of this <code>OpenMBeanConstructorInfo</code> instance
133 */
134 public String toString();
135
136 }
|