public final class Price
extends java.lang.Object
Constructor and Description |
---|
Price(java.lang.Long numerator,
java.lang.Long denominator)
Creates a new
Price instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getDenominator()
denominator
|
java.lang.Long |
getNumerator()
numerator
|
int |
hashCode() |
java.lang.String |
toString() |
public Price(java.lang.Long numerator, java.lang.Long denominator)
Price
instance.numerator
- numeratordenominator
- denominatorpublic java.lang.Long getNumerator()
public java.lang.Long getDenominator()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object