|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.twitterapime.model.DefaultEntity
com.twitterapime.rest.GeoLocation
public class GeoLocation
This class defines an entity that represents a geographic location.
Tweet
Field Summary |
---|
Fields inherited from class com.twitterapime.model.DefaultEntity |
---|
data |
Constructor Summary | |
---|---|
GeoLocation()
Create an instance of GeoLocation class. |
|
GeoLocation(java.util.Hashtable data)
Create an instance of GeoLocation class. |
|
GeoLocation(java.lang.String placeID)
Create an instance of GeoLocation class. |
|
GeoLocation(java.lang.String latitude,
java.lang.String longitude)
Create an instance of GeoLocation class. |
Method Summary |
---|
Methods inherited from class com.twitterapime.model.DefaultEntity |
---|
equals, getArray, getDate, getInt, getLong, getObject, getString, hashCode, setData, setData, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeoLocation()
Create an instance of GeoLocation class.
public GeoLocation(java.util.Hashtable data)
Create an instance of GeoLocation class.
data
- The initial attributes/values.public GeoLocation(java.lang.String placeID)
Create an instance of GeoLocation class.
placeID
- Place ID.
java.lang.IllegalArgumentException
- If placeID is null/empty.public GeoLocation(java.lang.String latitude, java.lang.String longitude)
Create an instance of GeoLocation class.
latitude
- Latitude. Must be between -90.0 and +90.0.longitude
- Longitude. Must be between -180.0 to +180.0.
java.lang.IllegalArgumentException
- If latitude/longitude is null/empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |