fix empty trace bug
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfLocation.java
1 package org.eclipse.linuxtools.tmf.core.ctfadaptor;
2
3 import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
4 import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
5
6 public class CtfLocation implements ITmfLocation<Long> {
7
8 public static final Long INVALID_LOCATION = -1L;
9
10 public CtfLocation(Long location) {
11 setLocation(location);
12 }
13
14 public CtfLocation(ITmfTimestamp timestamp) {
15 setLocation(timestamp.getValue());
16 }
17
18 private Long fTimestamp;
19
20 // @Override
21 public void setLocation(Long location) {
22 this.fTimestamp = location;
23 }
24
25 @Override
26 public Long getLocation() {
27 return this.fTimestamp;
28 }
29
30 @Override
31 public CtfLocation clone() {
32 return new CtfLocation(getLocation());
33 }
34
35 }
This page took 0.036481 seconds and 6 git commands to generate.