com.jrockit.mc.flightrecorder.util
Class OrderByStartTime

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.util.OrderByStartTime
All Implemented Interfaces:
IPriorityProvider<IEvent>

public final class OrderByStartTime
extends java.lang.Object
implements IPriorityProvider<IEvent>

IPriorityProvider that orders events by their start time. Used by the PriorityIterator.

Author:
Erik Gahlin

Method Summary
static IPriorityProvider<IEvent> getInstance()
          Returns an IPriorityProvider that order events by their start time.
 long getPriority(IEvent event)
          Returns the priority for the the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IPriorityProvider<IEvent> getInstance()
Returns an IPriorityProvider that order events by their start time.

Returns:
a priority provider

getPriority

public long getPriority(IEvent event)
Description copied from interface: IPriorityProvider
Returns the priority for the the object. Low values are prioritized than low values.

Specified by:
getPriority in interface IPriorityProvider<IEvent>
Parameters:
event - the object to get the priority for.
Returns:
the priority


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.