Пример #1
0
 /*
  * (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 public int hashCode() {
   return setName.hashCode() + geneDescriptor.hashCode();
 }
Пример #2
0
    /*
     * (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(Object obj) {
      if (!(obj instanceof SummaryKey)) return false;

      SummaryKey key = (SummaryKey) obj;
      return setName.equals(key.setName) && geneDescriptor.equals(key.geneDescriptor);
    }