1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Alexandre Montplaisir - Initial API and implementation
10 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.statesystem
.core
.interval
;
14 import java
.util
.Comparator
;
17 * Comparator for ITmfStateInterval, using their *end times*. Making intervals
18 * Comparable wouldn't be clear if it's using their start or end times (or maybe
19 * even values), so separate comparators are provided.
21 * @author Alexandre Montplaisir
24 public class TmfIntervalEndComparator
implements Comparator
<ITmfStateInterval
> {
27 public int compare(ITmfStateInterval o1
, ITmfStateInterval o2
) {
28 long e1
= o1
.getEndTime();
29 long e2
= o2
.getEndTime();
This page took 0.04995 seconds and 5 git commands to generate.