1ebcc64c1b40247f067ec4a05a71449580e35397
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / 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.tracecompass.tmf.core.parsers.custom;
14
15 import org.eclipse.tracecompass.tmf.core.trace.TmfContext;
16 import org.eclipse.tracecompass.tmf.core.trace.location.ITmfLocation;
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 @Override
38 public int hashCode() {
39 return super.hashCode();
40 }
41
42 @Override
43 public boolean equals(Object obj) {
44 if (this == obj) {
45 return true;
46 }
47 if (!super.equals(obj)) {
48 return false;
49 }
50 if (!(obj instanceof CustomXmlTraceContext)) {
51 return false;
52 }
53 return true;
54 }
55
56 }
This page took 0.033659 seconds and 4 git commands to generate.