Class Currency
- java.lang.Object
-
- software.amazon.spapi.models.shipping.v2.Currency
-
public class Currency extends java.lang.Object
The monetary value in the currency indicated, in ISO 4217 standard format.
-
-
Constructor Summary
Constructors Constructor Description Currency()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getUnit()
The ISO 4217 format 3-character currency code.java.math.BigDecimal
getValue()
The monetary value.int
hashCode()
void
setUnit(java.lang.String unit)
void
setValue(java.math.BigDecimal value)
java.lang.String
toString()
Currency
unit(java.lang.String unit)
Currency
value(java.math.BigDecimal value)
-
-
-
Method Detail
-
value
public Currency value(java.math.BigDecimal value)
-
getValue
public java.math.BigDecimal getValue()
The monetary value.- Returns:
- value
-
setValue
public void setValue(java.math.BigDecimal value)
-
unit
public Currency unit(java.lang.String unit)
-
getUnit
public java.lang.String getUnit()
The ISO 4217 format 3-character currency code.- Returns:
- unit
-
setUnit
public void setUnit(java.lang.String unit)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-