ec86422ab387b3c8acc668570ed09d02f5a2fdbf
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / parsers / custom / CustomXmlTraceContext.java
1 /*******************************************************************************
2 * Copyright (c) 2010, 2014 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.tmf.core.parsers.custom;
14
15 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
16 import org.eclipse.linuxtools.tmf.core.trace.location.ITmfLocation;
17
18 /**
19 * Trace context for custom XML traces.
20 *
21 * @author Patrick Tassé
22 * @since 3.0
23 */
24 public class CustomXmlTraceContext extends TmfContext {
25
26 /**
27 * Constructor
28 *
29 * @param location
30 * The location (in the file) of this context
31 * @param rank
32 * The rank of the event pointed by this context
33 */
34 public CustomXmlTraceContext(ITmfLocation location, long rank) {
35 super(location, rank);
36 }
37
38 @Override
39 public int hashCode() {
40 return super.hashCode();
41 }
42
43 @Override
44 public boolean equals(Object obj) {
45 if (this == obj) {
46 return true;
47 }
48 if (!super.equals(obj)) {
49 return false;
50 }
51 if (!(obj instanceof CustomXmlTraceContext)) {
52 return false;
53 }
54 return true;
55 }
56
57 }
This page took 0.058488 seconds and 4 git commands to generate.