net.sf.ehcache.pool.sizeof.filter
Class AnnotationSizeOfFilter
java.lang.Object
net.sf.ehcache.pool.sizeof.filter.AnnotationSizeOfFilter
- All Implemented Interfaces:
- SizeOfFilter
public final class AnnotationSizeOfFilter
- extends Object
- implements SizeOfFilter
A Filter that will filter fields, based on the IgnoreSizeOf
annotation
- Author:
- Chris Dennis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationSizeOfFilter
public AnnotationSizeOfFilter()
filterFields
public Collection<Field> filterFields(Class<?> klazz,
Collection<Field> fields)
- Returns the fields to walk and measure for a type
- Specified by:
filterFields
in interface SizeOfFilter
- Parameters:
klazz
- the typefields
- the fields already "qualified"
- Returns:
- the filtered Set
filterClass
public boolean filterClass(Class<?> klazz)
- Checks whether the type needs to be filtered
- Specified by:
filterClass
in interface SizeOfFilter
- Parameters:
klazz
- the type
- Returns:
- true, if to be filtered out
Copyright 2001-2014, Terracotta, Inc.