1 /*******************************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.core
.trace
.location
;
15 import java
.nio
.ByteBuffer
;
18 * A concrete implementation of TmfLocation based on Long:s
20 * @author Francois Chouinard
22 public final class TmfLongLocation
extends TmfLocation
{
28 * The concrete location
30 public TmfLongLocation(long locationInfo
) {
31 super(Long
.valueOf(locationInfo
));
35 * The normal constructor
37 * @param locationInfo the concrete location
39 public TmfLongLocation(final Long locationInfo
) {
44 * The copy constructor
46 * @param other the other location
48 public TmfLongLocation(final TmfLongLocation other
) {
49 super(other
.getLocationInfo());
53 * Construct the location from the ByteBuffer.
56 * the buffer to read from
58 public TmfLongLocation(ByteBuffer bufferIn
) {
59 this(bufferIn
.getLong());
63 public Long
getLocationInfo() {
64 return (Long
) super.getLocationInfo();
68 public void serialize(ByteBuffer bufferOut
) {
69 bufferOut
.putLong(getLocationInfo().longValue());
This page took 0.040071 seconds and 5 git commands to generate.