/** * Compare this MBeanNotificationInfo to another. * * @param o the object to compare to. * @return true if and only if <code>o</code> is an MBeanNotificationInfo such that its {@link * #getName()}, {@link #getDescription()}, {@link #getDescriptor()}, and {@link * #getNotifTypes()} values are equal (not necessarily identical) to those of this * MBeanNotificationInfo. Two notification type arrays are equal if their corresponding * elements are equal. They are not equal if they have the same elements but in a different * order. */ public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof MBeanNotificationInfo)) return false; MBeanNotificationInfo p = (MBeanNotificationInfo) o; return (p.getName().equals(getName()) && p.getDescription().equals(getDescription()) && p.getDescriptor().equals(getDescriptor()) && Arrays.equals(p.fastGetNotifTypes(), fastGetNotifTypes())); }