Merge branch 'master' into TmfTraceModel-new
[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 CtfLocation(Long location) {
9 setLocation(location);
10 }
11
12 public CtfLocation(ITmfTimestamp timestamp) {
13 setLocation(timestamp.getValue());
14 }
15
16 private Long fTimestamp;
17
18 // @Override
19 public void setLocation(Long location) {
20 this.fTimestamp = location;
21 }
22
23 @Override
24 public Long getLocation() {
25 return this.fTimestamp;
26 }
27
28 @Override
29 public CtfLocation clone() {
30 return new CtfLocation(getLocation());
31 }
32
33 }
This page took 0.036353 seconds and 6 git commands to generate.