hudson.plugins.clover
クラス Ratio

java.lang.Object
  上位を拡張 hudson.plugins.clover.Ratio
すべての実装されたインタフェース:
CoverageBarProvider, java.io.Serializable

public final class Ratio
extends java.lang.Object
implements java.io.Serializable, CoverageBarProvider

Represents x/y where x=numerator and y=denominator.

作成者:
Kohsuke Kawaguchi
関連項目:
直列化された形式

フィールドの概要
 float denominator
           
 float numerator
           
static java.text.NumberFormat PC_WIDTH_FORMAT
           
 
メソッドの概要
static Ratio create(float x, float y)
          Creates a new instance of Ratio.
 boolean equals(java.lang.Object o)
           
 java.lang.String getHasData()
           
 java.lang.String getPcCovered()
           
 java.lang.String getPcUncovered()
           
 java.lang.String getPcWidth()
           
 int getPercentage()
          Gets the percentage in integer.
 java.lang.String getPercentage1d()
          Gets the percentage in integer.
 float getPercentageFloat()
          Gets the percentage in float.
 java.lang.String getPercentageStr()
           
 int hashCode()
           
 java.lang.String toString()
          Gets "x/y" representation.
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

numerator

public final float numerator

denominator

public final float denominator

PC_WIDTH_FORMAT

public static final java.text.NumberFormat PC_WIDTH_FORMAT
メソッドの詳細

toString

public java.lang.String toString()
Gets "x/y" representation.

オーバーライド:
クラス java.lang.Object 内の toString

getPercentage1d

public java.lang.String getPercentage1d()
Gets the percentage in integer.


getPercentageStr

public java.lang.String getPercentageStr()

getPcWidth

public java.lang.String getPcWidth()
定義:
インタフェース CoverageBarProvider 内の getPcWidth

getPcUncovered

public java.lang.String getPcUncovered()
定義:
インタフェース CoverageBarProvider 内の getPcUncovered

getPcCovered

public java.lang.String getPcCovered()
定義:
インタフェース CoverageBarProvider 内の getPcCovered

getHasData

public java.lang.String getHasData()
定義:
インタフェース CoverageBarProvider 内の getHasData

getPercentage

public int getPercentage()
Gets the percentage in integer.


getPercentageFloat

public float getPercentageFloat()
Gets the percentage in float.


equals

public boolean equals(java.lang.Object o)
オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

create

public static Ratio create(float x,
                           float y)
Creates a new instance of Ratio.



Copyright © 2004-2011. All Rights Reserved.