|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.emma.Ratio
@ExportedBean public final class Ratio
Represents x/y where x=numerator and y=denominator.
| Constructor Summary | |
|---|---|
Ratio(float... f)
|
|
| Method Summary | |
|---|---|
void |
addValue(String v)
|
boolean |
equals(Object o)
|
float |
getDenominator()
|
float |
getNumerator()
|
int |
getPercentage()
Gets the percentage in integer. |
float |
getPercentageFloat()
Gets the percentage in float. |
int |
hashCode()
|
boolean |
isInitialized()
|
String |
toString()
Gets "x/y" representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ratio(float... f)
| Method Detail |
|---|
public float getNumerator()
public float getDenominator()
public String toString()
toString in class Object@Exported public int getPercentage()
@Exported public float getPercentageFloat()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void addValue(String v)
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||