org.ehcache.sizeof
Class SizeOfFilterSource

java.lang.Object
  extended by org.ehcache.sizeof.SizeOfFilterSource
All Implemented Interfaces:
Filter

public final class SizeOfFilterSource
extends Object
implements Filter

Author:
Alex Snaps

Constructor Summary
SizeOfFilterSource(boolean registerAnnotationFilter)
           
 
Method Summary
 SizeOfFilter[] getFilters()
           
 void ignoreField(Field field)
          Adds a field to the ignore list.
 void ignoreInstancesOf(Class clazz, boolean strict)
          Adds the class to the ignore list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeOfFilterSource

public SizeOfFilterSource(boolean registerAnnotationFilter)
Method Detail

getFilters

public SizeOfFilter[] getFilters()

ignoreInstancesOf

public void ignoreInstancesOf(Class clazz,
                              boolean strict)
Description copied from interface: Filter
Adds the class to the ignore list. Can be strict, or include subtypes

Specified by:
ignoreInstancesOf in interface Filter
Parameters:
clazz - the class to ignore
strict - true if to be ignored strictly, or false to include sub-classes

ignoreField

public void ignoreField(Field field)
Description copied from interface: Filter
Adds a field to the ignore list. When that field is walked to by the SizeOfEngine, it won't navigate the graph further

Specified by:
ignoreField in interface Filter
Parameters:
field - the field to stop navigating the graph at


Copyright © 2016 Terracotta. All Rights Reserved.