org.springframework.social.twitter.api
Class SimilarPlaces
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Place>
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
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 |
SimilarPlaces
public SimilarPlaces(List<Place> places,
PlacePrototype placePrototype)
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.