ehcache

net.sf.ehcache.pool.sizeof.filter
Class CombinationSizeOfFilter

java.lang.Object
  extended by net.sf.ehcache.pool.sizeof.filter.CombinationSizeOfFilter
All Implemented Interfaces:
SizeOfFilter

public class CombinationSizeOfFilter
extends Object
implements SizeOfFilter

Filter combining multiple filters

Author:
Chris Dennis

Constructor Summary
CombinationSizeOfFilter(SizeOfFilter... filters)
          Constructs a filter combining multiple ones
 
Method Summary
 boolean filterClass(Class<?> klazz)
          Checks whether the type needs to be filtered
 Collection<Field> filterFields(Class<?> klazz, Collection<Field> fields)
          Returns the fields to walk and measure for a type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinationSizeOfFilter

public CombinationSizeOfFilter(SizeOfFilter... filters)
Constructs a filter combining multiple ones

Parameters:
filters - the filters to combine
Method Detail

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 type
fields - 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

ehcache

Copyright 2001-2014, Terracotta, Inc.