net.sf.mpxj
Class Availability

java.lang.Object
  extended by net.sf.mpxj.Availability
All Implemented Interfaces:
Comparable<Availability>

public class Availability
extends Object
implements Comparable<Availability>

This class represents a row from a resource's availability table.


Constructor Summary
Availability(Date startDate, Date endDate, Number units)
          Constructor.
 
Method Summary
 int compareTo(Availability o)
          
 DateRange getRange()
          Retrieves the date range of the availability period.
 Number getUnits()
          Retrieves the units for the availability period.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Availability

public Availability(Date startDate,
                    Date endDate,
                    Number units)
Constructor.

Parameters:
startDate - start date
endDate - end date
units - units for the period
Method Detail

getRange

public DateRange getRange()
Retrieves the date range of the availability period.

Returns:
start date

getUnits

public Number getUnits()
Retrieves the units for the availability period.

Returns:
units

compareTo

public int compareTo(Availability o)

Specified by:
compareTo in interface Comparable<Availability>

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.