More fixes of static analysis warnings for UML2SD
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / ctfadaptor / CtfLocation.java
CommitLineData
a3fc8213
AM
1package org.eclipse.linuxtools.tmf.core.ctfadaptor;
2
3import org.eclipse.linuxtools.tmf.core.event.ITmfTimestamp;
4import org.eclipse.linuxtools.tmf.core.trace.ITmfLocation;
5
6public class CtfLocation implements ITmfLocation<Long> {
7
57c073c5
MK
8 public static final Long INVALID_LOCATION = -1L;
9
a3fc8213
AM
10 public CtfLocation(Long location) {
11 setLocation(location);
12 }
ce2388e0 13
a3fc8213
AM
14 public CtfLocation(ITmfTimestamp timestamp) {
15 setLocation(timestamp.getValue());
16 }
17
18 private Long fTimestamp;
19
fcccd900 20// @Override
a3fc8213
AM
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.027104 seconds and 5 git commands to generate.