com.sap.ip.collaboration.gw.api.framework.groupware
Interface IDateRange

All Superinterfaces:
java.lang.Comparable

public interface IDateRange
extends java.lang.Comparable

This is an utility interface for handling date ranges.

Copyright (c) SAP 2003

Version:
$Revision: 1.0$

Method Summary
 int getDuration()
          Returns the duration of the date range
 java.util.Date getEndDateTime()
          Returns the End date and time
 java.util.Date getStartDateTime()
          Returns the start date and time
 void setDuration(int duration)
          Sets the duration of the date range (sets the endDateTime as startDateTime + duration)
 void setEndDateTime(java.util.Date endDateTime)
          Sets the end date and time
 void setStartDateTime(java.util.Date startDateTime)
          Sets the start date and time
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getDuration

public int getDuration()
Returns the duration of the date range
Returns:
duration (in minutes)

getEndDateTime

public java.util.Date getEndDateTime()
Returns the End date and time
Returns:
end date time

getStartDateTime

public java.util.Date getStartDateTime()
Returns the start date and time
Returns:
start date time

setDuration

public void setDuration(int duration)
Sets the duration of the date range (sets the endDateTime as startDateTime + duration)
Parameters:
duration - (in minutes)

setEndDateTime

public void setEndDateTime(java.util.Date endDateTime)
Sets the end date and time
Parameters:
Date - end date time

setStartDateTime

public void setStartDateTime(java.util.Date startDateTime)
Sets the start date and time
Parameters:
Date - start date time