com.jrockit.mc.flightrecorder.util
Class AndFilter

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

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

Event filter that returns true iff two other filters returns true

Author:
Erik Gahlin

Constructor Summary
AndFilter(IEventFilter a, IEventFilter b)
          Constructs an AndFilter
 
Method Summary
 boolean accept(IEvent range)
          Returns true if the two filter that make up this filter both returns true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndFilter

public AndFilter(IEventFilter a,
                 IEventFilter b)
Constructs an AndFilter

Parameters:
a - the first filter
b - the second filter
Method Detail

accept

public boolean accept(IEvent range)
Returns true if the two filter that make up this filter both returns true

Specified by:
accept in interface IEventFilter
Parameters:
range - the event to accept or reject.
Returns:
true if the two filter that make up this filter both returns true


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