Class CombinationSizeOfFilter
- java.lang.Object
-
- net.sf.ehcache.pool.sizeof.filter.CombinationSizeOfFilter
-
- All Implemented Interfaces:
SizeOfFilter
public class CombinationSizeOfFilter extends java.lang.Object implements SizeOfFilter
Filter combining multiple filters- Author:
- Chris Dennis
-
-
Constructor Summary
Constructors Constructor Description CombinationSizeOfFilter(SizeOfFilter... filters)Constructs a filter combining multiple ones
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Constructor Detail
-
CombinationSizeOfFilter
public CombinationSizeOfFilter(SizeOfFilter... filters)
Constructs a filter combining multiple ones- Parameters:
filters- the filters to combine
-
-
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:
filterFieldsin 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:
filterClassin interfaceSizeOfFilter- Parameters:
klazz- the type- Returns:
- true, if to be filtered out
-
-