Remove the generic location (replace by Comparable)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / parsers / custom / CustomXmlTraceContext.java
1 /*******************************************************************************
2 * Copyright (c) 2010 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.internal.tmf.ui.parsers.custom;
14
15 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
16 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
17
18 public class CustomXmlTraceContext extends TmfContext {
19
20 public CustomXmlTraceContext(ITmfLocation location, long rank) {
21 super(location, rank);
22 }
23
24 /* (non-Javadoc)
25 * @see java.lang.Object#hashCode()
26 */
27 @Override
28 public int hashCode() {
29 return super.hashCode();
30 }
31
32 /* (non-Javadoc)
33 * @see java.lang.Object#equals(java.lang.Object)
34 */
35 @Override
36 public boolean equals(Object obj) {
37 if (this == obj) {
38 return true;
39 }
40 if (!super.equals(obj)) {
41 return false;
42 }
43 if (!(obj instanceof CustomXmlTraceContext)) {
44 return false;
45 }
46 return true;
47 }
48
49 }
This page took 0.032606 seconds and 5 git commands to generate.