public static class RatioGauge.Ratio extends Object
Modifier and Type | Method and Description |
---|---|
double |
getValue()
Returns the ratio, which is either a
double between 0 and 1 (inclusive) or
NaN . |
static RatioGauge.Ratio |
of(double numerator,
double denominator)
Creates a new ratio with the given numerator and denominator.
|
String |
toString() |
public static RatioGauge.Ratio of(double numerator, double denominator)
numerator
- the numerator of the ratiodenominator
- the denominator of the rationumerator:denominator
public double getValue()
double
between 0 and 1 (inclusive) or
NaN
.Copyright © 2018. All Rights Reserved.