com.jrockit.mc.flightrecorder.util
Class OrFilter

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

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

Event filter that return true if at least one of two other filters returns true.

Author:
Erik Gahlin

Constructor Summary
OrFilter(IEventFilter a, IEventFilter b)
           
 
Method Summary
 boolean accept(IEvent range)
          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

OrFilter

public OrFilter(IEventFilter a,
                IEventFilter b)
Method Detail

accept

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

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


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