twitter4j
Class QueryResultJSONImpl

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

final class QueryResultJSONImpl
extends java.lang.Object
implements QueryResult, java.io.Serializable

A data class representing search API response

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  double completedIn
           
private  long maxId
           
private  int page
           
private  java.lang.String query
           
private  java.lang.String refreshUrl
           
private  int resultsPerPage
           
private static long serialVersionUID
           
private  long sinceId
           
private  java.util.List<Tweet> tweets
           
private  java.lang.String warning
           
 
Constructor Summary
QueryResultJSONImpl(twitter4j.internal.http.HttpResponse res)
           
QueryResultJSONImpl(Query query)
           
 
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()
          
 java.util.List<Tweet> getTweets()
          
 java.lang.String getWarning()
          
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sinceId

private long sinceId

maxId

private long maxId

refreshUrl

private java.lang.String refreshUrl

resultsPerPage

private int resultsPerPage

warning

private java.lang.String warning

completedIn

private double completedIn

page

private int page

query

private java.lang.String query

tweets

private java.util.List<Tweet> tweets

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

QueryResultJSONImpl

QueryResultJSONImpl(twitter4j.internal.http.HttpResponse res)
              throws TwitterException
Throws:
TwitterException

QueryResultJSONImpl

QueryResultJSONImpl(Query query)
Method Detail

getSinceId

public long getSinceId()

Specified by:
getSinceId in interface QueryResult

getMaxId

public long getMaxId()

Specified by:
getMaxId in interface QueryResult

getRefreshUrl

public java.lang.String getRefreshUrl()

Specified by:
getRefreshUrl in interface QueryResult

getResultsPerPage

public int getResultsPerPage()

Specified by:
getResultsPerPage in interface QueryResult

getWarning

public java.lang.String getWarning()

Specified by:
getWarning in interface QueryResult

getCompletedIn

public double getCompletedIn()

Specified by:
getCompletedIn in interface QueryResult

getPage

public int getPage()

Specified by:
getPage in interface QueryResult

getQuery

public java.lang.String getQuery()

Specified by:
getQuery in interface QueryResult

getTweets

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

Specified by:
getTweets in interface QueryResult

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