|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.Rate
public final class Rate
This class represents a currency rate per period of time (for example $10/h) as found in an MPX file.
| Constructor Summary | |
|---|---|
Rate(double amount,
TimeUnit time)
This constructor builds an instance of this class from a currency amount and a time unit. |
|
Rate(Number amount,
TimeUnit time)
This constructor builds an instance of this class from a currency amount and a time unit. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
double |
getAmount()
Accessor method to retrieve the currency amount. |
TimeUnit |
getUnits()
Accessor method to retrieve the time units. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rate(Number amount,
TimeUnit time)
amount - currency amounttime - time units
public Rate(double amount,
TimeUnit time)
amount - currency amounttime - time units| Method Detail |
|---|
public double getAmount()
public TimeUnit getUnits()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||