citysdk.tourism.client.poi.lists
Class POIS<T>

java.lang.Object
  extended by citysdk.tourism.client.poi.base.POIBaseType
      extended by citysdk.tourism.client.poi.base.POIType
          extended by citysdk.tourism.client.poi.single.POI
              extended by citysdk.tourism.client.poi.lists.POIS<T>
Type Parameters:
T - an object extending a poi base class, either a PointOfInterest, Event, Route or Tag.
All Implemented Interfaces:
Deserializable
Direct Known Subclasses:
ListEvent, ListPointOfInterest, ListRoute, ListTag

public class POIS<T>
extends POI

The representation of a list of POI.

Author:
Pedro Cruz

Constructor Summary
POIS()
          Creates an empty list.
 
Method Summary
 void add(T t)
          Adds an object to the list
 T get(int i)
          Gets the object stored in the given index
 java.util.List<T> getList()
          Gets all the objects stored
 int size()
          Gets the number of objects stored
 
Methods inherited from class citysdk.tourism.client.poi.single.POI
getLocation, hasAddress, setLocation
 
Methods inherited from class citysdk.tourism.client.poi.base.POIType
addCategory, addDescription, addLabel, addLink, addTime, getCategory, getDescription, getLabel, getLink, getTime, hasCategories, hasDescriptions, hasLabels, hasLinks, hasTimes
 
Methods inherited from class citysdk.tourism.client.poi.base.POIBaseType
getAuthor, getBase, getCreated, getDeleted, getHref, getId, getLang, getLicense, getType, getUpdated, getValue, setAuthor, setBase, setCreated, setDeleted, setHref, setId, setLang, setLicense, setType, setUpdated, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POIS

public POIS()
Creates an empty list.

Method Detail

add

public void add(T t)
Adds an object to the list

Parameters:
t - the object to be added

getList

public java.util.List<T> getList()
Gets all the objects stored

Returns:
the list of objects

size

public int size()
Gets the number of objects stored

Returns:
the total number of objects

get

public T get(int i)
Gets the object stored in the given index

Parameters:
i - the index of a given object
Returns:
the object stored in the given index or null