twitter4j
Class QueryResult

java.lang.Object
  extended by twitter4j.TwitterResponse
      extended by twitter4j.QueryResult
All Implemented Interfaces:
java.io.Serializable

public class QueryResult
extends TwitterResponse

A data class representing search API response

Author:
Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object o)
           
 double getCompletedIn()
           
 long getMaxId()
           
 int getPage()
           
 java.lang.String getQuery()
           
 java.lang.String getRefreshUrl()
           
 int getResultsPerPage()
           
 long getSinceId()
           
 int getTotal()
          Deprecated. The Twitter API doesn't return total anymore
 java.util.List<Tweet> getTweets()
           
 java.lang.String getWarning()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponse
ensureRootNodeNameIs, ensureRootNodeNameIs, ensureRootNodeNameIs, getBoolean, getChildBoolean, getChildDate, getChildDate, getChildInt, getChildLong, getChildText, getInt, getLong, getRateLimitLimit, getRateLimitRemaining, getRateLimitReset, getString, getTextContent, isRootNodeNilClasses, parseDate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getSinceId

public long getSinceId()

getMaxId

public long getMaxId()

getRefreshUrl

public java.lang.String getRefreshUrl()

getResultsPerPage

public int getResultsPerPage()

getTotal

public int getTotal()
Deprecated. The Twitter API doesn't return total anymore

returns the number of hits

Returns:
number of hits
See Also:
TRJ-108 deprecate QueryResult#getTotal()

getWarning

public java.lang.String getWarning()

getCompletedIn

public double getCompletedIn()

getPage

public int getPage()

getQuery

public java.lang.String getQuery()

getTweets

public java.util.List<Tweet> getTweets()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.