Esempio n. 1
0
 /* (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + (accept ? 1231 : 1237);
   result = prime * result + ((colour == null) ? 0 : colour.hashCode());
   result = prime * result + ((kind == null) ? 0 : kind.hashCode());
   result = prime * result + ((sequence == null) ? 0 : sequence.hashCode());
   return result;
 }
Esempio n. 2
0
 /* (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (!(obj instanceof AugmentPTAData)) return false;
   final AugmentPTAData other = (AugmentPTAData) obj;
   if (accept != other.accept) return false;
   if (colour == null) {
     if (other.colour != null) return false;
   } else if (!colour.equals(other.colour)) return false;
   if (!kind.equals(other.kind)) return false;
   if (!sequence.equals(other.sequence)) return false;
   return true;
 }