twitter4j
Class SavedSearch

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

public class SavedSearch
extends TwitterResponse

A data class representing a Saved Search

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

Field Summary
private  java.util.Date createdAt
           
private  int id
           
private  java.lang.String name
           
private  int position
           
private  java.lang.String query
           
private static long serialVersionUID
           
 
Constructor Summary
SavedSearch(twitter4j.org.json.JSONObject savedSearch)
           
SavedSearch(twitter4j.http.Response res)
           
SavedSearch(twitter4j.http.Response res, twitter4j.org.json.JSONObject json)
           
 
Method Summary
(package private) static java.util.List<SavedSearch> constructSavedSearches(twitter4j.http.Response res)
           
 boolean equals(java.lang.Object o)
           
 java.util.Date getCreatedAt()
           
 int getId()
           
 java.lang.String getName()
           
 int getPosition()
           
 java.lang.String getQuery()
           
 int hashCode()
           
private  void init(twitter4j.org.json.JSONObject savedSearch)
           
 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
 

Field Detail

createdAt

private java.util.Date createdAt

query

private java.lang.String query

position

private int position

name

private java.lang.String name

id

private int id

serialVersionUID

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

SavedSearch

SavedSearch(twitter4j.http.Response res)
      throws TwitterException
Throws:
TwitterException

SavedSearch

SavedSearch(twitter4j.http.Response res,
            twitter4j.org.json.JSONObject json)
      throws TwitterException
Throws:
TwitterException

SavedSearch

SavedSearch(twitter4j.org.json.JSONObject savedSearch)
      throws TwitterException
Throws:
TwitterException
Method Detail

constructSavedSearches

static java.util.List<SavedSearch> constructSavedSearches(twitter4j.http.Response res)
                                                   throws TwitterException
Throws:
TwitterException

init

private void init(twitter4j.org.json.JSONObject savedSearch)
           throws TwitterException
Throws:
TwitterException

getCreatedAt

public java.util.Date getCreatedAt()

getQuery

public java.lang.String getQuery()

getPosition

public int getPosition()

getName

public java.lang.String getName()

getId

public int getId()

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