com.jrockit.mc.flightrecorder.util
Class TimeFilter

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.util.TimeFilter
All Implemented Interfaces:
IEventFilter

public final class TimeFilter
extends java.lang.Object
implements IEventFilter

Filters out event in a time range. Typically events can be filtered out more efficiently if a view is created with the time range the vents should be picked from.

Author:
egahlin
See Also:
IView

Constructor Summary
TimeFilter(ITimeRange range)
           
TimeFilter(long startTime, long endTime)
           
 
Method Summary
 boolean accept(IEvent event)
          Returns true if the event is accepted by the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeFilter

public TimeFilter(long startTime,
                  long endTime)

TimeFilter

public TimeFilter(ITimeRange range)
Method Detail

accept

public boolean accept(IEvent event)
Description copied from interface: IEventFilter
Returns true if the event is accepted by the filter.

Specified by:
accept in interface IEventFilter
Parameters:
event - the event to accept or reject.


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