01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.activities.ws;
11:
12: import org.eclipse.ui.activities.ITriggerPoint;
13:
14: /**
15: * @since 3.1
16: */
17: public abstract class AbstractTriggerPoint implements ITriggerPoint {
18:
19: /* (non-Javadoc)
20: * @see java.lang.Object#equals(java.lang.Object)
21: */
22: public boolean equals(Object obj) {
23: if (obj instanceof ITriggerPoint) {
24: return getId().equals(((ITriggerPoint) obj).getId());
25: }
26:
27: return false;
28: }
29:
30: /* (non-Javadoc)
31: * @see java.lang.Object#hashCode()
32: */
33: public int hashCode() {
34: return getId().hashCode();
35: }
36:
37: }
|