de.bea.domingo.util
Class GregorianTimeRange

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

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

A Gregorian time range.

Author:
Kurt Riede

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

GregorianTimeRange

public GregorianTimeRange()
Constructor.


GregorianTimeRange

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