X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Ftrace%2FTmfLongLocation.java;h=b54ec5da31d08603c9e703f493799f0f545617cd;hb=d62bb1853c3388385d5ce10b0302b3dde139c3ab;hp=0bf5b7369d9522b80a347a92bd68841d4c920d66;hpb=1e1bef822097e1241e5fc7754bdb2be53de7aa86;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java index 0bf5b7369d..b54ec5da31 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfLongLocation.java @@ -12,32 +12,38 @@ package org.eclipse.linuxtools.tmf.core.trace; - /** - * TmfLongLocation - *
- * Implement me. Please. - *
+ * A concrete implementation of TmfLocation based on Long:s + * + * @author Francois Chouinard * @since 2.0 */ -public class TmfLongLocation extends TmfLocation { +public final class TmfLongLocation extends TmfLocation { /** - * @param location the location + * The normal constructor + * + * @param locationInfo the concrete location */ - public TmfLongLocation(Long location) { - super(location); + public TmfLongLocation(final Long locationInfo) { + super(locationInfo); } /** + * The copy constructor + * * @param other the other location */ - public TmfLongLocation(TmfLongLocation other) { - super(other.getLocationData()); + public TmfLongLocation(final TmfLongLocation other) { + super(other.getLocationInfo()); } + /* (non-Javadoc) + * @see org.eclipse.linuxtools.tmf.core.trace.ITmfLocation#getLocationInfo() + */ @Override - public TmfLongLocation clone() { - return new TmfLongLocation((Long) getLocationData()); + public Long getLocationInfo() { + return (Long) super.getLocationInfo(); } + }