com.cedarsoft.sample
Class Money

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

public class Money
extends java.lang.Object

Represents a money object


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

Field Detail

amount

private final double amount
Constructor Detail

Money

public Money(double amount)
Method Detail

getAmount

public double getAmount()

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.