Interface SizeOfFilter
-
- All Known Implementing Classes:
AnnotationSizeOfFilter,CombinationSizeOfFilter,PassThroughFilter,ResourceSizeOfFilter
public interface SizeOfFilterFilter to filter types or fields of object graphs passed to a SizeOf engine- Author:
- Chris Dennis
- See Also:
SizeOf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfilterClass(java.lang.Class<?> klazz)Checks whether the type needs to be filteredjava.util.Collection<java.lang.reflect.Field>filterFields(java.lang.Class<?> klazz, java.util.Collection<java.lang.reflect.Field> fields)Returns the fields to walk and measure for a type
-
-
-
Method Detail
-
filterFields
java.util.Collection<java.lang.reflect.Field> filterFields(java.lang.Class<?> klazz, java.util.Collection<java.lang.reflect.Field> fields)Returns the fields to walk and measure for a type- Parameters:
klazz- the typefields- the fields already "qualified"- Returns:
- the filtered Set
-
filterClass
boolean filterClass(java.lang.Class<?> klazz)
Checks whether the type needs to be filtered- Parameters:
klazz- the type- Returns:
- true, if to be filtered out
-
-