tmf: Update copyright headers in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / parsers / custom / CustomXmlTraceContext.java
1 /*******************************************************************************
2 * Copyright (c) 2010, 2013 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 /**
19 * Trace context for custom XML traces.
20 *
21 * @author Patrick Tassé
22 */
23 public class CustomXmlTraceContext extends TmfContext {
24
25 /**
26 * Constructor
27 *
28 * @param location
29 * The location (in the file) of this context
30 * @param rank
31 * The rank of the event pointed by this context
32 */
33 public CustomXmlTraceContext(ITmfLocation location, long rank) {
34 super(location, rank);
35 }
36
37 /* (non-Javadoc)
38 * @see java.lang.Object#hashCode()
39 */
40 @Override
41 public int hashCode() {
42 return super.hashCode();
43 }
44
45 /* (non-Javadoc)
46 * @see java.lang.Object#equals(java.lang.Object)
47 */
48 @Override
49 public boolean equals(Object obj) {
50 if (this == obj) {
51 return true;
52 }
53 if (!super.equals(obj)) {
54 return false;
55 }
56 if (!(obj instanceof CustomXmlTraceContext)) {
57 return false;
58 }
59 return true;
60 }
61
62 }
This page took 0.032198 seconds and 6 git commands to generate.