com.jrockit.mc.flightrecorder.util
Class AlwaysFalseFilter

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

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

IEventFilter that always returns false.

Author:
Erik Gahlin

Method Summary
 boolean accept(IEvent object)
          Returns true if the event is accepted by the filter.
static IEventFilter getInstance()
          Returns a filter that always returns false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

accept

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

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

getInstance

public static IEventFilter getInstance()
Returns a filter that always returns false

Returns:
an always false filter


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