Clover coverage report - baseCode - 0.2.5
Coverage timestamp: Tue Apr 12 2005 11:31:58 EDT
file stats: LOC: 51   Methods: 4
NCLOC: 19   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
IndexScoreDyad.java - 66.7% 75% 70%
coverage coverage
 1   
 package baseCode.io.reader;
 2   
 
 3   
 /**
 4   
  * <hr>
 5   
  * <p>
 6   
  * Copyright (c) 2004 Columbia University
 7   
  * 
 8   
  * @author pavlidis
 9   
  * @version $Id: IndexScoreDyad.java,v 1.2 2004/08/17 21:17:41 pavlidis Exp $
 10   
  */
 11   
 final class IndexScoreDyad implements Comparable {
 12   
 
 13   
    int key;
 14   
    double value;
 15   
 
 16   
    /**
 17   
     * @param key
 18   
     * @param value
 19   
     */
 20  12
    public IndexScoreDyad( int key, double value ) {
 21  12
       this.key = key;
 22  12
       this.value = value;
 23   
    }
 24   
 
 25   
    /**
 26   
     * @return Returns the key.
 27   
     */
 28  12
    public int getKey() {
 29  12
       return key;
 30   
    }
 31   
 
 32   
    /**
 33   
     * @return Returns the value.
 34   
     */
 35  12
    public double getValue() {
 36  12
       return value;
 37   
    }
 38   
 
 39   
    /*
 40   
     * (non-Javadoc)
 41   
     * 
 42   
     * @see java.lang.Comparable#compareTo(java.lang.Object)
 43   
     */
 44  0
    public int compareTo( Object o ) {
 45  0
       IndexScoreDyad other = ( IndexScoreDyad ) o;
 46  0
       return other.getKey() - key;
 47   
    }
 48   
 
 49   
 }
 50   
 
 51