org.ehcache.sizeof.filters
Class TypeFilter

java.lang.Object
  extended by org.ehcache.sizeof.filters.TypeFilter
All Implemented Interfaces:
SizeOfFilter

public class TypeFilter
extends Object
implements SizeOfFilter

Author:
Alex Snaps

Constructor Summary
TypeFilter()
           
 
Method Summary
 void addClass(Class<?> classToFilterOut, boolean strict)
           
 void addField(Field fieldToFilterOut)
           
 boolean filterClass(Class<?> klazz)
          Checks whether the type needs to be filtered
 Collection<Field> filterFields(Class<?> klazz, Collection<Field> fields)
          Returns the fields to walk and measure for a type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeFilter

public TypeFilter()
Method Detail

filterFields

public Collection<Field> filterFields(Class<?> klazz,
                                      Collection<Field> fields)
Description copied from interface: SizeOfFilter
Returns the fields to walk and measure for a type

Specified by:
filterFields in interface SizeOfFilter
Parameters:
klazz - the type
fields - the fields already "qualified"
Returns:
the filtered Set

filterClass

public boolean filterClass(Class<?> klazz)
Description copied from interface: SizeOfFilter
Checks whether the type needs to be filtered

Specified by:
filterClass in interface SizeOfFilter
Parameters:
klazz - the type
Returns:
true, if to be filtered out

addClass

public void addClass(Class<?> classToFilterOut,
                     boolean strict)

addField

public void addField(Field fieldToFilterOut)


Copyright © 2016 Terracotta. All Rights Reserved.