de.bea.domingo.util
Class GregorianDateRange

java.lang.Object
  extended by de.bea.domingo.util.GregorianDateRange
All Implemented Interfaces:
DDateRange

public final class GregorianDateRange
extends java.lang.Object
implements DDateRange

A Gregorian date range.

Author:
Kurt Riede

Constructor Summary
GregorianDateRange()
          Constructor.
GregorianDateRange(java.util.Calendar start, java.util.Calendar end)
          Constructor.
 
Method Summary
 java.util.Calendar getFrom()
          Returns the end date of the date range.
 java.util.Calendar getTo()
          Returns the end date of the date range.
 void setFrom(java.util.Calendar start)
          Sets the end date of the date range.
 void setTo(java.util.Calendar end)
          Sets the end date of the date range.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GregorianDateRange

public GregorianDateRange()
Constructor.


GregorianDateRange

public GregorianDateRange(java.util.Calendar start,
                          java.util.Calendar end)
Constructor.

Parameters:
start - start date
end - end date
Method Detail

getFrom

public java.util.Calendar getFrom()
Returns the end date of the date range.

Specified by:
getFrom in interface DDateRange
Returns:
start date

getTo

public java.util.Calendar getTo()
Returns the end date of the date range.

Specified by:
getTo in interface DDateRange
Returns:
end date

setTo

public void setTo(java.util.Calendar end)
Sets the end date of the date range.

Specified by:
setTo in interface DDateRange
Parameters:
end - end date

setFrom

public void setFrom(java.util.Calendar start)
Sets the end date of the date range.

Specified by:
setFrom in interface DDateRange
Parameters:
start - start date

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Calendar.toString()


Domingo Java-API