jfreerails.world.common
Class Money

java.lang.Object
  extended by jfreerails.world.common.Money
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public final class Money
extends java.lang.Object
implements FreerailsSerializable

Represents an amount of Money.

Author:
Luke
See Also:
Serialized Form

Field Summary
private  long amount
           
private static java.text.DecimalFormat df
           
private static long serialVersionUID
           
static Money ZERO
           
 
Constructor Summary
Money(long amount)
           
 
Method Summary
 Money changeSign()
           
 boolean equals(java.lang.Object obj)
           
 long getAmount()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

ZERO

public static final Money ZERO

df

private static final java.text.DecimalFormat df

amount

private final long amount
Constructor Detail

Money

public Money(long amount)
Method Detail

getAmount

public long getAmount()

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

changeSign

public Money changeSign()

equals

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