package baseCode.dataStructure;

public class OntologyEntry {

   private String id = "";
   private String name = "";
   private String definition = "";

   public OntologyEntry(String id) {
      this(id, null, null);
   }

   public OntologyEntry(String id, String name, String def) {
      this.id = id;
      this.name = name;
      this.definition = def;
   }

   public String getName() {
      return name;
   }
   public String getId() {
      return id;
   }
   public String getDefinition() {
      return definition;
   }

   public void setName(String n) {
      name = n;
   }

   public void setDefinition(String d) {
      definition = d;
   }

   public String toString() {
      return new String(id + ": \t" + name);
   }

   /**
    * Two OntologyEntry instances are equal if their ids are equal.
    *
    * @param k Object to be compared to.
    * @return boolean
    */
   public boolean equals(Object k) {
      if (k == this)
         return true;
      if (!(k instanceof OntologyEntry) ) {
         return false;
      }

      if (((OntologyEntry)k).getId() == id) {
         return true;
      }
      return false;
   }

   public int hashCode() {
      return getId().hashCode();
   }

}

@@ -739,481 +739,6 @@
  %7D%0A%0A
-   /**%0A    * Two OntologyEntry instances are equal if their ids are equal.%0A    *%0A    * @param k Object to be compared to.%0A    * @return boolean%0A    */%0A   public boolean equals(Object k) %7B%0A      if (k == this)%0A         return true;%0A      if (!(k instanceof OntologyEntry) ) %7B%0A         return false;%0A      %7D%0A%0A      if (((OntologyEntry)k).getId() == id) %7B%0A         return true;%0A      %7D%0A      return false;%0A   %7D%0A%0A   public int hashCode() %7B%0A      return getId().hashCode();%0A   %7D%0A%0A
 %7D%0A

graph debugging.