예제 #1
0
 @Override
 public boolean equals(Object obj) {
   if (obj == null) {
     return false;
   } else if (obj == this) {
     return true;
   } else if (!(obj instanceof Declaration)) {
     return false;
   } else {
     final Declaration other = (Declaration) obj;
     return other.getIdentifier().equals(getIdentifier());
   }
 }