Package com.cognitect.transit
Interface Ratio
-
- All Superinterfaces:
Comparable<Ratio>
public interface Ratio extends Comparable<Ratio>
Represents a ratio using BigIntegers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigInteger
getDenominator()
Gets the denominatorBigInteger
getNumerator()
Gets the numeratorDouble
getValue()
The value of the ratio as double-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getValue
Double getValue()
The value of the ratio as double- Returns:
- a double
-
getNumerator
BigInteger getNumerator()
Gets the numerator- Returns:
- numerator
-
getDenominator
BigInteger getDenominator()
Gets the denominator- Returns:
- denominator
-
-