org.netbeans.modules.nbjunit/1 1.29

org.netbeans.junit
Interface MemoryFilter


public interface MemoryFilter

Instance filter contract.


Method Summary
 boolean reject(Object obj)
          Decides non-destructively wheter given instance pass custom criteria.
 

Method Detail

reject

public boolean reject(Object obj)
Decides non-destructively wheter given instance pass custom criteria. Implementation must not alter JVM heap and it must return the same result if it gets some instance multiple times. And it must be very fast.

Returns:
true if passed instance is not accepted.

E.g.: return obj instanceof java.lang.ref.Reference


org.netbeans.modules.nbjunit/1 1.29

Built on May 12 2006.  |  Portions Copyright 1997-2006 Sun Microsystems, Inc. All rights reserved.