FileDocCategorySizeDatePackage
When.javaAPI DocAndroid 1.5 API1341Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.calendar.data

When

public class When extends Object
Contains information about the start and end of an instance of an event.

Fields Summary
private final String
startTime
private final String
endTime
Constructors Summary
public When(String startTime, String endTime)
Creates a new When.

param
startTime The start of the event.
param
endTime The end of the event.

        this.startTime = startTime;
        this.endTime = endTime;
    
Methods Summary
public java.lang.StringgetEndTime()
Returns the end time for the event.

return
The end time for the event.

        return endTime;
    
public java.lang.StringgetStartTime()
Returns the start time for the event.

return
The start time for the event.

        return startTime;
    
public voidtoString(java.lang.StringBuffer sb)

        if (!StringUtils.isEmpty(startTime)) {
            sb.append("START TIME: " + startTime + "\n");
        }
        if (!StringUtils.isEmpty(endTime)) {
            sb.append("END TIME: " + endTime + "\n");
        }
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer();
        toString(sb);
        return sb.toString();