(Object obj)
| 67 | } |
| 68 | |
| 69 | @Override |
| 70 | public boolean equals(Object obj) { |
| 71 | if (this == obj) return true; |
| 72 | if (obj == null) return false; |
| 73 | if (getClass() != obj.getClass()) return false; |
| 74 | Name other = (Name) obj; |
| 75 | if (first == null) { |
| 76 | if (other.first != null) return false; |
| 77 | } else if (!first.equals(other.first)) return false; |
| 78 | if (last == null) { |
| 79 | if (other.last != null) return false; |
| 80 | } else if (!last.equals(other.last)) return false; |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | |
| 85 | } |