Make the TmfLocation final and get rid of clone()
[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 final 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 }
This page took 0.03029 seconds and 5 git commands to generate.