MPXJ: Microsoft Project Exchange

net.sf.mpxj
Class Rate

Package class diagram package Rate
java.lang.Object
  extended by net.sf.mpxj.Rate

public final class Rate
extends java.lang.Object

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(java.lang.Number amount, TimeUnit time)
          This constructor builds an instance of this class from a currency amount and a time unit.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 double getAmount()
          Accessor method to retrieve the currency amount.
 TimeUnit getUnits()
          Accessor method to retrieve the time units.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rate

public Rate(java.lang.Number amount,
            TimeUnit time)
This constructor builds an instance of this class from a currency amount and a time unit.

Parameters:
amount - currency amount
time - time units

Rate

public Rate(double amount,
            TimeUnit time)
This constructor builds an instance of this class from a currency amount and a time unit.

Parameters:
amount - currency amount
time - time units
Method Detail

getAmount

public double getAmount()
Accessor method to retrieve the currency amount.

Returns:
amount component of the rate

getUnits

public TimeUnit getUnits()
Accessor method to retrieve the time units.

Returns:
time component of the rate

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2009 Packwood Software. All Rights Reserved.