b4eebf353c36796feb4b3d32ba2956a0b5029b17
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / trace / TmfLongLocation.java
1 /*******************************************************************************
2 * Copyright (c) 2012 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 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.trace;
14
15 /**
16 * A concrete implementation of TmfLocation based on Long:s
17 *
18 * @author Francois Chouinard
19 * @since 2.0
20 */
21 public class TmfLongLocation extends TmfLocation {
22
23 /**
24 * The normal constructor
25 *
26 * @param locationInfo the concrete location
27 */
28 public TmfLongLocation(final Long locationInfo) {
29 super(locationInfo);
30 }
31
32 /**
33 * The copy constructor
34 *
35 * @param other the other location
36 */
37 public TmfLongLocation(final TmfLongLocation other) {
38 super(other.getLocationInfo());
39 }
40
41 /* (non-Javadoc)
42 * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo()
43 */
44 @Override
45 public Long getLocationInfo() {
46 return (Long) super.getLocationInfo();
47 }
48
49 /* (non-Javadoc)
50 * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#clone()
51 */
52 @Override
53 public TmfLongLocation clone() {
54 TmfLongLocation clone = null;
55 clone = (TmfLongLocation) super.clone();
56 return clone;
57 }
58
59 /* (non-Javadoc)
60 * @see org.eclipse.linuxtools.tmf.core.trace.TmfLocation#cloneValue()
61 */
62 @Override
63 protected Long cloneLocationInfo() {
64 // No need to clone a Long
65 return getLocationInfo();
66 }
67
68 }
This page took 0.031238 seconds and 5 git commands to generate.