public class RatioValue
extends java.lang.Object
| Constructor | Description |
|---|---|
RatioValue(double percent) |
| Modifier and Type | Method | Description |
|---|---|---|
double |
getAsPercent() |
|
double |
getAsRatio() |
|
static RatioValue |
parseRatioValue(java.lang.String sValue) |
Parses the provided string as a
RatioValue, the string can
either be in percentage format (eg. |
java.lang.String |
toString() |
public double getAsRatio()
public double getAsPercent()
public java.lang.String toString()
toString in class java.lang.Objectpublic static RatioValue parseRatioValue(java.lang.String sValue)
RatioValue, the string can
either be in percentage format (eg. 73.5%), or a floating-point ratio
format (eg. 0.735)