d82169fab86653171629fd2d82b97c6d18d25cf2
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Francois Chouinard (fchouinard@gmail.com) - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.eventlog
;
15 import org
.eclipse
.linuxtools
.tmf
.event
.TmfTimestamp
;
18 * <b><u>TmfStreamBookmark</u></b>
20 * This class maps an event timestamp with a trace location.
22 public class TmfStreamBookmark
implements Comparable
<TmfStreamBookmark
> {
24 // ========================================================================
26 // ========================================================================
28 private final TmfTimestamp fTimestamp
;
29 private final Object fLocation
;
31 // ========================================================================
33 // ========================================================================
39 public TmfStreamBookmark(TmfTimestamp ts
, Object location
) {
44 // ========================================================================
46 // ========================================================================
49 * @return the bookmarked event timestamp
51 public TmfTimestamp
getTimestamp() {
56 * @return the bookmarked event stream location
58 public Object
getLocation() {
62 // ========================================================================
64 // ========================================================================
66 public int compareTo(TmfStreamBookmark other
) {
67 return fTimestamp
.compareTo(other
.fTimestamp
, false);
This page took 0.031521 seconds and 4 git commands to generate.