Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class TimePeriod

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.TimePeriod
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class TimePeriod
extends GenericJson

Model definition for TimePeriod.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
TimePeriod()
           
 
Method Summary
 TimePeriod clone()
           
 DateTime getEnd()
          The (exclusive) end of the time period.
 DateTime getStart()
          The (inclusive) start of the time period.
 TimePeriod set(String fieldName, Object value)
           
 TimePeriod setEnd(DateTime end)
          The (exclusive) end of the time period.
 TimePeriod setStart(DateTime start)
          The (inclusive) start of the time period.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimePeriod

public TimePeriod()
Method Detail

getEnd

public DateTime getEnd()
The (exclusive) end of the time period.

Returns:
value or null for none

setEnd

public TimePeriod setEnd(DateTime end)
The (exclusive) end of the time period.

Parameters:
end - end or null for none

getStart

public DateTime getStart()
The (inclusive) start of the time period.

Returns:
value or null for none

setStart

public TimePeriod setStart(DateTime start)
The (inclusive) start of the time period.

Parameters:
start - start or null for none

set

public TimePeriod set(String fieldName,
                      Object value)
Overrides:
set in class GenericJson

clone

public TimePeriod clone()
Overrides:
clone in class GenericJson