Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 62   Methods: 7
NCLOC: 41   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ValueObject.java 0% 0% 0% 0%
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.pojo.test;
 8   
 9    /**
 10    * Object to test non-primitive key.
 11    */
 12    // We are using JDK1.5 annotation.
 13    @org.jboss.cache.pojo.annotation.Replicable
 14    public class ValueObject
 15    {
 16   
 17    private IdObject idObj;
 18    private float value;
 19   
 20  0 public ValueObject()
 21    {
 22    } // ValueObject
 23   
 24  0 public ValueObject(IdObject aIdObj, float aValue)
 25    {
 26  0 idObj = aIdObj;
 27  0 value = aValue;
 28    } // ValueObject
 29   
 30  0 public IdObject getIdObj()
 31    {
 32  0 return idObj;
 33    }
 34   
 35  0 public float getValue()
 36    {
 37  0 return value;
 38    }
 39   
 40  0 public String toString()
 41    {
 42  0 return idObj + ": " + value;
 43    } // toString
 44   
 45  0 public boolean equals(Object aObject)
 46    {
 47  0 boolean result = false;
 48   
 49  0 if ((aObject != null) &&
 50    (aObject.getClass().getName().equals(this.getClass().getName())))
 51    {
 52  0 result = idObj.equals(((ValueObject) aObject).idObj);
 53    } // if
 54   
 55  0 return result;
 56    } // equals
 57   
 58  0 public int hashCode()
 59    {
 60  0 return idObj.hashCode();
 61    } // hashCode
 62    } // class ValueObject