org.springframework.social.twitter.api
Class SimilarPlaces

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Place>
              extended by org.springframework.social.twitter.api.SimilarPlaces
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Place>, Collection<Place>, List<Place>, RandomAccess

public class SimilarPlaces
extends ArrayList<Place>

Represents the results of a similar places search. Includes places that match the search criteria and a PlacePrototype that can be used to create a new place.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SimilarPlaces(List<Place> places, PlacePrototype placePrototype)
           
 
Method Summary
protected  void add(String key, Object value)
          JsonAnySetter hook.
 Map<String,Object> getExtraData()
           
 PlacePrototype getPlacePrototype()
          A prototype place that matches the criteria for the call to GeoOperations.findSimilarPlaces(double, double, String), including a create token that can be used to create the place.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SimilarPlaces

public SimilarPlaces(List<Place> places,
                     PlacePrototype placePrototype)
Method Detail

getPlacePrototype

public PlacePrototype getPlacePrototype()
A prototype place that matches the criteria for the call to GeoOperations.findSimilarPlaces(double, double, String), including a create token that can be used to create the place.


getExtraData

public Map<String,Object> getExtraData()
Returns:
Any fields in response from Twitter that are otherwise not mapped to any properties.

add

protected void add(String key,
                   Object value)
JsonAnySetter hook. Called when an otherwise unmapped property is being processed during JSON deserialization.

Parameters:
key - The property's key.
value - The property's value.