public final class PriceQuantity
extends java.lang.Object
| Constructor and Description |
|---|
PriceQuantity(java.math.BigDecimal price,
int quantity) |
PriceQuantity(int quantity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.math.BigDecimal |
getPrice() |
int |
getQuantity() |
int |
hashCode() |
java.lang.String |
toString() |
public PriceQuantity(java.math.BigDecimal price,
int quantity)
public PriceQuantity(int quantity)
public java.math.BigDecimal getPrice()
public int getQuantity()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object