MoneyHome Class

com.beasys.commerce.axiom.units
MoneyHome Class

public class MoneyHome

    extends Object
    implements Serializable, SmartHome

The home class for the Money belonging. Use this class to create instances of Money.

       Money money = MoneyHome.create();
 


Hierarchy
Object
  MoneyHome
All Implemented Interfaces

Serializable, SmartHome

Constructor Summary

MoneyHome()

 

Method Summary

public static Money
create()
Create a new Money Belonging.
public static Money
create(double value, String currency)
Create a new money object with the object initialized to the values passed in.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

MoneyHome

public MoneyHome()
 

Method Detail

create() Method

public static Money create()
Create a new Money Belonging. First look to see if there is a custom money home from the BelongingHome factory. If not, just use the default BelongingHome.create() operation.


create(double, String) Method

public static Money create(double value, 
                           String currency)
Create a new money object with the object initialized to the values passed in.