1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.segmentstore
.core
;
15 import java
.io
.Serializable
;
18 * Generic interface for any segment (like a time range) that can be used in the
21 * @author Alexandre Montplaisir
23 public interface ISegment
extends Serializable
, Comparable
<ISegment
> {
26 * The start position/time of the segment.
28 * @return The start position
33 * The end position/time of the segment
35 * @return The end position
40 * The length/duration of the segment.
42 * @return The duration
44 default long getLength() {
45 return getEnd() - getStart();
This page took 0.035667 seconds and 6 git commands to generate.