Class BigDecimalFraction
java.lang.Object
oracle.communication.brm.charging.util.unit.BigDecimalFraction
Created with IntelliJ IDEA.
User: vaishali
Date: 24/9/18
Time: 11:40 AM
To change this template use File | Settings | File Templates.
-
Constructor Summary
ConstructorsConstructorDescriptionBigDecimalFraction
(BigDecimal numerator, BigDecimal denominator) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
static BigDecimalFraction
getFraction
(BigDecimal numerator, BigDecimal denominator) Method to instantiate a Fraction with the given numerator and denominatorint
hashCode()
int
intValue()
toString()
-
Constructor Details
-
BigDecimalFraction
Constructor- Parameters:
numerator
- Numeratordenominator
- Denominator
-
-
Method Details
-
getFraction
Method to instantiate a Fraction with the given numerator and denominator- Parameters:
numerator
- Numeratordenominator
- Denominator- Returns:
- The fraction with the given numerator and denominator
-
getNumerator
- Returns:
- The Numerator from the fraction
-
getDenominator
- Returns:
- The Denominator from the fraction
-
intValue
public int intValue()- Returns:
- value 1 if the numerator and denominator are same; -1 otherwise
-
toString
-
equals
-
hashCode
public int hashCode()
-