com.jrockit.mc.flightrecorder.util
Class AlwaysTrueFilter

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

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

IEventFilter that always returns true

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 true
 
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 true

Returns:
an always false filter


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