All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.doclets.jmx.JmxComponent Maven / Gradle / Ivy

package org.infinispan.doclets.jmx;

/**
 * A JMX Component
 *
 * @author Manik Surtani
 * @since 4.0
 */
public abstract class JmxComponent implements Comparable {
   public String name;
   public String desc = "";

   @Override
   public int compareTo(JmxComponent other) {
      return name.compareTo(other.name);
   }

   @Override
   public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      JmxComponent that = (JmxComponent) o;

      if (name != null ? !name.equals(that.name) : that.name != null) return false;

      return true;
   }

   @Override
   public int hashCode() {
      return name != null ? name.hashCode() : 0;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy