org.hibernate.test.sql.hand
Class MonetaryAmount
java.lang.Object
   org.hibernate.test.sql.hand.MonetaryAmount
org.hibernate.test.sql.hand.MonetaryAmount
- All Implemented Interfaces: 
- Serializable
- public class MonetaryAmount 
- extends Object- implements Serializable
Represents a monetary amount as value and currency.
- See Also:
- Serialized Form
 
 
 
MonetaryAmount
public MonetaryAmount(BigDecimal value,
                      Currency currency)
getCurrency
public Currency getCurrency()
- 
 
- 
 
getValue
public BigDecimal getValue()
- 
 
- 
 
equals
public boolean equals(Object o)
- 
- Overrides:
- equalsin class- Object
 
- 
 
hashCode
public int hashCode()
- 
- Overrides:
- hashCodein class- Object
 
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object
 
- 
 
compareTo
public int compareTo(Object o)
- 
 
- 
 
fromString
public static MonetaryAmount fromString(String amount,
                                        String currencyCode)
- 
 
- 
 
convert
public static MonetaryAmount convert(MonetaryAmount amount,
                                     Currency toConcurrency)
- 
 
- 
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.