Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 34   Methods: 3
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
LFUPolicy.java - 100% 100% 100%
coverage
 1    /*
 2    * JBoss, the OpenSource J2EE webOS
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.eviction;
 8   
 9    /**
 10    * Least Frequently Used Eviction Policy.
 11    *
 12    * @author Daniel Huang - dhuang@jboss.org - 10/2005
 13    * @version $Revision: 1.2 $
 14    */
 15    public class LFUPolicy extends BaseEvictionPolicy implements EvictionPolicy
 16    {
 17    private LFUAlgorithm algorithm;
 18   
 19  35 public LFUPolicy()
 20    {
 21  35 super();
 22  35 algorithm = new LFUAlgorithm();
 23    }
 24   
 25  30 public EvictionAlgorithm getEvictionAlgorithm()
 26    {
 27  30 return algorithm;
 28    }
 29   
 30  15 public Class<LFUConfiguration> getEvictionConfigurationClass()
 31    {
 32  15 return LFUConfiguration.class;
 33    }
 34    }