Package org.ehcache.sizeof.filters
Interface SizeOfFilter
- All Known Implementing Classes:
AnnotationSizeOfFilter
,CombinationSizeOfFilter
,PassThroughFilter
,TypeFilter
public interface SizeOfFilter
Filter to filter types or fields of object graphs passed to a SizeOf engine
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
filterClass
(Class<?> klazz) Checks whether the type needs to be filteredfilterFields
(Class<?> klazz, Collection<Field> fields) Returns the fields to walk and measure for a type
-
Method Details
-
filterFields
Returns the fields to walk and measure for a type- Parameters:
klazz
- the typefields
- the fields already "qualified"- Returns:
- the filtered Set
-
filterClass
Checks whether the type needs to be filtered- Parameters:
klazz
- the type- Returns:
- true, if to be filtered out
-