org.apache.commons.functor.example.kata.one
Class Money

java.lang.Object
  extended by org.apache.commons.functor.example.kata.one.Money

public class Money
extends Object

Version:
$Revision: 644480 $ $Date: 2008-04-03 22:43:29 +0200 (Thu, 03 Apr 2008) $
Author:
Rodney Waldhoff

Constructor Summary
Money(int cents)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getValueAsCents()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Money

public Money(int cents)
Method Detail

getValueAsCents

public int getValueAsCents()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.