Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 7 8 package javax.management; 9 10 11 20 public class MBeanFeatureInfo implements java.io.Serializable { 21 22 23 24 static final long serialVersionUID = 3952882688968447265L; 25 26 33 protected String name; 34 35 42 protected String description; 43 44 45 51 public MBeanFeatureInfo(String name, String description) 52 throws IllegalArgumentException { 53 this.name = name; 54 this.description = description; 55 } 56 57 58 63 public String getName() { 64 return name; 65 } 66 67 72 public String getDescription() { 73 return description; 74 } 75 76 86 public boolean equals(Object o) { 87 if (o == this) 88 return true; 89 if (!(o instanceof MBeanFeatureInfo )) 90 return false; 91 MBeanFeatureInfo p = (MBeanFeatureInfo ) o; 92 return (p.getName().equals(getName()) && 93 p.getDescription().equals(getDescription())); 94 } 95 96 public int hashCode() { 97 return getName().hashCode() ^ getDescription().hashCode(); 98 } 99 } 100
| Popular Tags
|