1 /*******************************************************************************
2 * Copyright (c) 2017 École Polytechnique de Montréal
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
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.datastore
.core
.interval
;
13 * Generic interface for any serializable object (like a time range) that can be used in the
14 * generic history tree.
16 * @author Alexandre Montplaisir
17 * @author Geneviève Bastien
19 public interface IHTInterval
extends ISerializableObject
{
22 * The start position/time of the object.
24 * @return The start position
29 * The end position/time of the object
31 * @return The end position
36 * Utility method to check if the current interval intersects a timestamp.
39 * The timestamp to check
40 * @return If it intersects or not
42 default boolean intersects(long timestamp
) {
43 if (getStart() <= timestamp
&& timestamp
<= getEnd()) {
This page took 0.031454 seconds and 5 git commands to generate.