Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 93   Methods: 13
NCLOC: 64   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
EvictedEventNode.java - 93.3% 92.3% 92.9%
coverage 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    import org.jboss.cache.Fqn;
 10   
 11    /**
 12    * Value object used in evicted event node queue.
 13    *
 14    * @author Ben Wang 2-2004
 15    * @author Daniel Huang (dhuang@jboss.org)
 16    * @see org.jboss.cache.Region
 17    */
 18    public class EvictedEventNode
 19    {
 20    private Fqn fqn_;
 21    private NodeEventType type_;
 22    private int elementDifference_;
 23    private boolean resetElementCount_;
 24   
 25    private long inUseTimeout;
 26   
 27  294952 public EvictedEventNode(Fqn fqn, NodeEventType type, int elementDifference)
 28    {
 29  294952 this(fqn, type);
 30  294952 setElementDifference(elementDifference);
 31    }
 32   
 33  1291744 public EvictedEventNode(Fqn fqn, NodeEventType event)
 34    {
 35  1291744 setFqn(fqn);
 36  1291744 setEventType(event);
 37    }
 38   
 39  1 public long getInUseTimeout()
 40    {
 41  1 return inUseTimeout;
 42    }
 43   
 44  1 public void setInUseTimeout(long inUseTimeout)
 45    {
 46  1 this.inUseTimeout = inUseTimeout;
 47    }
 48   
 49  80642 public boolean isResetElementCount()
 50    {
 51  80642 return this.resetElementCount_;
 52    }
 53   
 54  4 public void setResetElementCount(boolean resetElementCount)
 55    {
 56  4 this.resetElementCount_ = resetElementCount;
 57    }
 58   
 59  80650 public int getElementDifference()
 60    {
 61  80650 return elementDifference_;
 62    }
 63   
 64  294952 public void setElementDifference(int elementDifference_)
 65    {
 66  294952 this.elementDifference_ = elementDifference_;
 67    }
 68   
 69  1992282 public Fqn getFqn()
 70    {
 71  1992299 return fqn_;
 72    }
 73   
 74  1291744 public void setFqn(Fqn fqn)
 75    {
 76  1291744 this.fqn_ = fqn;
 77    }
 78   
 79  1291744 public void setEventType(NodeEventType event)
 80    {
 81  1291744 type_ = event;
 82    }
 83   
 84  986346 public NodeEventType getEventType()
 85    {
 86  986346 return type_;
 87    }
 88   
 89  0 public String toString()
 90    {
 91  0 return "EvictedEN[fqn=" + fqn_ + " event=" + type_ + " diff=" + elementDifference_ + "]";
 92    }
 93    }