Returns true if the two objects are equal. @param object the object to compare against @return true if the two objects are equal
(final Object object)
| 74 | * @return true if the two objects are equal |
| 75 | */ |
| 76 | @Override |
| 77 | public boolean equals(final Object object) { |
| 78 | if (null == object) { |
| 79 | return false; |
| 80 | } |
| 81 | if (getClass() == object.getClass()) { |
| 82 | final WebWindowEvent event = (WebWindowEvent) object; |
| 83 | return isEqual(getSource(), event.getSource()) |
| 84 | && getEventType() == event.getEventType() |
| 85 | && isEqual(getOldPage(), event.getOldPage()) |
| 86 | && isEqual(getNewPage(), event.getNewPage()); |
| 87 | } |
| 88 | return false; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Returns the hash code for this object. |
no test coverage detected