|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.GeoQuery
public final class GeoQuery
Field Summary | |
---|---|
static java.lang.String |
CITY
|
static java.lang.String |
NEIGHBORHOOD
|
Constructor Summary | |
---|---|
GeoQuery(GeoLocation location)
Creates a GeoQuery with the specified location |
|
GeoQuery(java.lang.String ip)
Creates a GeoQuery with the specified IP address |
Method Summary | |
---|---|
GeoQuery |
accuracy(java.lang.String accuracy)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAccuracy()
|
java.lang.String |
getGranularity()
|
java.lang.String |
getIp()
|
GeoLocation |
getLocation()
|
int |
getMaxResults()
|
GeoQuery |
granularity(java.lang.String granularity)
|
int |
hashCode()
|
GeoQuery |
maxResults(int maxResults)
|
void |
setAccuracy(java.lang.String accuracy)
Sets a hint on the "region" in which to search. |
void |
setGranularity(java.lang.String granularity)
Sets the minimal granularity of data to return. |
void |
setMaxResults(int maxResults)
Sets a hint as to the number of results to return. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NEIGHBORHOOD
public static final java.lang.String CITY
Constructor Detail |
---|
public GeoQuery(GeoLocation location)
location
- public GeoQuery(java.lang.String ip)
ip
- IP addressMethod Detail |
---|
public GeoLocation getLocation()
public java.lang.String getIp()
public java.lang.String getAccuracy()
public void setAccuracy(java.lang.String accuracy)
accuracy
- a hint on the "region" in which to search.public GeoQuery accuracy(java.lang.String accuracy)
public java.lang.String getGranularity()
public void setGranularity(java.lang.String granularity)
granularity
- the minimal granularity of data to returnpublic GeoQuery granularity(java.lang.String granularity)
public int getMaxResults()
public void setMaxResults(int maxResults)
maxResults
- A hint as to the number of results to return.public GeoQuery maxResults(int maxResults)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |