ehcache

net.sf.ehcache.pool.sizeof.filter
Interface SizeOfFilter

All Known Implementing Classes:
AnnotationSizeOfFilter, CombinationSizeOfFilter, PassThroughFilter, ResourceSizeOfFilter

public interface SizeOfFilter

Filter to filter types or fields of object graphs passed to a SizeOf engine

Author:
Chris Dennis
See Also:
SizeOf

Method Summary
 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
 

Method Detail

filterFields

Collection<Field> filterFields(Class<?> klazz,
                               Collection<Field> fields)
Returns the fields to walk and measure for a type

Parameters:
klazz - the type
fields - the fields already "qualified"
Returns:
the filtered Set

filterClass

boolean filterClass(Class<?> klazz)
Checks whether the type needs to be filtered

Parameters:
klazz - the type
Returns:
true, if to be filtered out

ehcache

Copyright 2001-2014, Terracotta, Inc.