1 /**********************************************************************
2 * Copyright (c) 2005, 2012 IBM Corporation, 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 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.util
;
15 import java
.io
.Serializable
;
16 import java
.util
.Comparator
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.core
.SDTimeEvent
;
21 * Time event comparator
26 public class TimeEventComparator
implements Comparator
<SDTimeEvent
>, Serializable
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
35 private static final long serialVersionUID
= 5885497718872575669L;
37 // ------------------------------------------------------------------------
39 // ------------------------------------------------------------------------
43 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
46 public int compare(SDTimeEvent arg0
, SDTimeEvent arg1
) {
47 SDTimeEvent t1
= arg0
;
48 SDTimeEvent t2
= arg1
;
49 if (t1
.getEvent() > t2
.getEvent()) {
52 else if (t1
.getEvent() == t2
.getEvent()) {
This page took 0.032026 seconds and 6 git commands to generate.