home *** CD-ROM | disk | FTP | other *** search
- package javax.management;
-
- import mx4j.util.Utils;
-
- public class MBeanNotificationInfo extends MBeanFeatureInfo {
- private static final long serialVersionUID = -3888371564530107064L;
- private String[] types;
-
- public MBeanNotificationInfo(String[] notifsType, String name, String description) {
- super(name, description);
- this.types = notifsType == null ? new String[0] : notifsType;
- }
-
- public String[] getNotifTypes() {
- return this.types;
- }
-
- public int hashCode() {
- return super.hashCode() ^ Utils.arrayHashCode(this.getNotifTypes());
- }
-
- public boolean equals(Object obj) {
- if (!super.equals(obj)) {
- return false;
- } else {
- try {
- MBeanNotificationInfo other = (MBeanNotificationInfo)obj;
- return Utils.arrayEquals(this.getNotifTypes(), other.getNotifTypes());
- } catch (ClassCastException var3) {
- return false;
- }
- }
- }
- }
-