com.cedarsoft.sample.fixed
Class Money

Package class diagram package Money
java.lang.Object
  extended by com.cedarsoft.sample.fixed.Money

public class Money
extends java.lang.Object

Represents a money object


Field Summary
private  long cents
           
 
Constructor Summary
Money(double amount)
          Deprecated. 
Money(long cents)
           
 
Method Summary
static long convertValueToCents(double amount)
           
 boolean equals(java.lang.Object o)
           
 double getAmount()
          Deprecated. 
 long getCents()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cents

private final long cents
Constructor Detail

Money

public Money(long cents)

Money

@Deprecated
public Money(double amount)
Deprecated. 

Method Detail

getAmount

@Deprecated
public double getAmount()
Deprecated. 


getCents

public long getCents()

convertValueToCents

public static long convertValueToCents(double amount)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.