144 * different implementations of the <code>OpenMBeanOperationInfo</code> interface.
145 * <br>
146 * @param obj the object to be compared for equality with this <code>OpenMBeanOperationInfo</code> instance;
147 *
148 * @return <code>true</code> if the specified object is equal to this <code>OpenMBeanOperationInfo</code> instance.
149 */
150 public boolean equals(Object obj);
151
152 /**
153 * Returns the hash code value for this <code>OpenMBeanOperationInfo</code> instance.
154 * <p>
155 * The hash code of an <code>OpenMBeanOperationInfo</code> instance is the sum of the hash codes
156 * of all elements of information used in <code>equals</code> comparisons
157 * (ie: its name, return open type, impact and signature, where the signature hashCode is calculated by a call to
158 * <tt>java.util.Arrays.asList(this.getSignature).hashCode()</tt>).
159 * <p>
160 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
161 * for any two <code>OpenMBeanOperationInfo</code> instances <code>t1</code> and <code>t2</code>,
162 * as required by the general contract of the method
163 * {@link Object#hashCode() Object.hashCode()}.
164 * <p>
165 *
166 * @return the hash code value for this <code>OpenMBeanOperationInfo</code> instance
167 */
168 public int hashCode();
169
170 /**
171 * Returns a string representation of this <code>OpenMBeanOperationInfo</code> instance.
172 * <p>
173 * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanOperationInfo</code>),
174 * and the name, signature, return open type and impact of the described operation.
175 *
176 * @return a string representation of this <code>OpenMBeanOperationInfo</code> instance
177 */
178 public String toString();
179
180 }
|
144 * different implementations of the <code>OpenMBeanOperationInfo</code> interface.
145 * <br>
146 * @param obj the object to be compared for equality with this <code>OpenMBeanOperationInfo</code> instance;
147 *
148 * @return <code>true</code> if the specified object is equal to this <code>OpenMBeanOperationInfo</code> instance.
149 */
150 public boolean equals(Object obj);
151
152 /**
153 * Returns the hash code value for this <code>OpenMBeanOperationInfo</code> instance.
154 * <p>
155 * The hash code of an <code>OpenMBeanOperationInfo</code> instance is the sum of the hash codes
156 * of all elements of information used in <code>equals</code> comparisons
157 * (ie: its name, return open type, impact and signature, where the signature hashCode is calculated by a call to
158 * <tt>java.util.Arrays.asList(this.getSignature).hashCode()</tt>).
159 * <p>
160 * This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>
161 * for any two <code>OpenMBeanOperationInfo</code> instances <code>t1</code> and <code>t2</code>,
162 * as required by the general contract of the method
163 * {@link Object#hashCode() Object.hashCode()}.
164 *
165 *
166 * @return the hash code value for this <code>OpenMBeanOperationInfo</code> instance
167 */
168 public int hashCode();
169
170 /**
171 * Returns a string representation of this <code>OpenMBeanOperationInfo</code> instance.
172 * <p>
173 * The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanOperationInfo</code>),
174 * and the name, signature, return open type and impact of the described operation.
175 *
176 * @return a string representation of this <code>OpenMBeanOperationInfo</code> instance
177 */
178 public String toString();
179
180 }
|