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

Interface IDateRange

All Superinterfaces:
Comparable

public interface IDateRange
extends Comparable

This is an utility interface for handling date ranges.


Method Summary
 int getDuration()
          Returns the duration of the date range
 Date getEndDateTime()
          Returns the End date and time
 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(Date endDateTime)
          Sets the end date and time
 void setStartDateTime(Date startDateTime)
          Sets the start date and time
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

setStartDateTime

void setStartDateTime(Date startDateTime)
Sets the start date and time

Parameters:
Date - start date time

getStartDateTime

Date getStartDateTime()
Returns the start date and time

Returns:
start date time

setEndDateTime

void setEndDateTime(Date endDateTime)
Sets the end date and time

Parameters:
Date - end date time

getEndDateTime

Date getEndDateTime()
Returns the End date and time

Returns:
end date time

setDuration

void setDuration(int duration)
Sets the duration of the date range (sets the endDateTime as startDateTime + duration)

Parameters:
duration - (in minutes)

getDuration

int getDuration()
Returns the duration of the date range

Returns:
duration (in minutes)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-COLL [sap.com] tc/kmc/coll/gw api EP-KM-COL


Copyright 2012 SAP AG Complete Copyright Notice