de.bea.domingo.util
Class GregorianDateTimeRange

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

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

A date/time range.

Author:
Kurt Riede

Constructor Summary
GregorianDateTimeRange()
          Constructor.
GregorianDateTimeRange(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

GregorianDateTimeRange

public GregorianDateTimeRange()
Constructor.


GregorianDateTimeRange

public GregorianDateTimeRange(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