org.netbeans.modules.nbjunit/1 1.75

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

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.75

Built on May 24 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.