com.xerox.amazonws.fps
Class Amount

java.lang.Object
  extended by com.xerox.amazonws.fps.Amount
All Implemented Interfaces:
Serializable, Comparable

public class Amount
extends Object
implements Comparable, Serializable

See Also:
Serialized Form

Field Summary
static String USD
           
static Amount ZERO_USD
           
 
Constructor Summary
Amount(BigDecimal amount, String currencyCode)
           
Amount(double amount, String currencyCode)
           
 
Method Summary
 Amount add(BigDecimal amount, String currencyCode)
           
 Amount add(int amount, String currencyCode)
           
 int compareTo(Object o)
           
 BigDecimal getAmount()
           
 String getCurrencyCode()
           
static Amount parseAmount(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USD

public static final String USD
See Also:
Constant Field Values

ZERO_USD

public static final Amount ZERO_USD
Constructor Detail

Amount

public Amount(BigDecimal amount,
              String currencyCode)

Amount

public Amount(double amount,
              String currencyCode)
Method Detail

getAmount

public BigDecimal getAmount()

getCurrencyCode

public String getCurrencyCode()

add

public Amount add(int amount,
                  String currencyCode)

add

public Amount add(BigDecimal amount,
                  String currencyCode)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

parseAmount

public static Amount parseAmount(String value)

toString

public String toString()
Overrides:
toString in class Object