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