Package org.ehcache.sizeof.filters
Class TypeFilter
java.lang.Object
org.ehcache.sizeof.filters.TypeFilter
- All Implemented Interfaces:
SizeOfFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WeakIdentityConcurrentMap
<Class<?>, Object> private final WeakIdentityConcurrentMap
<Class<?>, ConcurrentMap<Field, Object>> private final WeakIdentityConcurrentMap
<Class<?>, Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
boolean
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
-
Field Details
-
classesIgnored
-
superClasses
-
fieldsIgnored
-
-
Constructor Details
-
TypeFilter
public TypeFilter()
-
-
Method Details
-
filterFields
Description copied from interface:SizeOfFilter
Returns the fields to walk and measure for a type- Specified by:
filterFields
in interfaceSizeOfFilter
- Parameters:
klazz
- the typefields
- the fields already "qualified"- Returns:
- the filtered Set
-
filterClass
Description copied from interface:SizeOfFilter
Checks whether the type needs to be filtered- Specified by:
filterClass
in interfaceSizeOfFilter
- Parameters:
klazz
- the type- Returns:
- true, if to be filtered out
-
addClass
-
addField
-