Package org.ehcache.sizeof.impl
Class PassThroughFilter
- java.lang.Object
-
- org.ehcache.sizeof.impl.PassThroughFilter
-
- All Implemented Interfaces:
SizeOfFilter
public class PassThroughFilter extends java.lang.Object implements SizeOfFilter
-
-
Constructor Summary
Constructors Constructor Description PassThroughFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
filterClass(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
public 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- Specified by:
filterFields
in interfaceSizeOfFilter
- Parameters:
klazz
- the typefields
- the fields already "qualified"- Returns:
- the filtered Set
-
filterClass
public boolean filterClass(java.lang.Class<?> klazz)
Checks whether the type needs to be filtered- Specified by:
filterClass
in interfaceSizeOfFilter
- Parameters:
klazz
- the type- Returns:
- true, if to be filtered out
-
-