|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.ui.ChangeFormat
public class ChangeFormat
An abstract representation of the concept of Change. This class stores the
change of a value (in percent). It is currently used as a place holder
for the class SortedTable
to allow us to differentiate it
from the other double
values used in that object. This way
we can format it differently.
Constructor Summary | |
---|---|
ChangeFormat(double change)
Create a new Change object from the given change. |
|
ChangeFormat(double initialValue,
double finalValue)
Create a new change object and calculate the change from the initial and final monetary values. |
|
ChangeFormat(Money initialValue,
Money finalValue)
Create a new change object and calculate the change from the initial and final monetary values. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Compare two change objects. |
double |
getChange()
Get the change percent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChangeFormat(double change)
change
- the change in percentpublic ChangeFormat(Money initialValue, Money finalValue)
initialValue
- the initial amountfinalValue
- the final amountpublic ChangeFormat(double initialValue, double finalValue)
initialValue
- the initial amountfinalValue
- the final amountMethod Detail |
---|
public double getChange()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- change object to compare to
0
if the change objects are equal;
1
if this change object is after the specified change
object or
-1
if this change object is before the specified change
object
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |