twitter4j
Class CategoryJSONImpl

java.lang.Object
  extended by twitter4j.CategoryJSONImpl
All Implemented Interfaces:
java.io.Serializable, Category

final class CategoryJSONImpl
extends java.lang.Object
implements Category, java.io.Serializable

Since:
Twitter4J 2.1.1
Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  java.lang.String name
           
private static long serialVersionUID
           
private  int size
           
private  java.lang.String slug
           
 
Constructor Summary
CategoryJSONImpl(twitter4j.internal.org.json.JSONObject json)
           
 
Method Summary
static ResponseList<Category> createCategoriesList(twitter4j.internal.http.HttpResponse res)
           
static ResponseList<Category> createCategoriesList(twitter4j.internal.org.json.JSONArray array, twitter4j.internal.http.HttpResponse res)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 int getSize()
           
 java.lang.String getSlug()
           
 int hashCode()
           
(package private)  void init(twitter4j.internal.org.json.JSONObject json)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

slug

private java.lang.String slug

size

private int size

serialVersionUID

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

CategoryJSONImpl

CategoryJSONImpl(twitter4j.internal.org.json.JSONObject json)
           throws twitter4j.internal.org.json.JSONException
Throws:
twitter4j.internal.org.json.JSONException
Method Detail

init

void init(twitter4j.internal.org.json.JSONObject json)
    throws twitter4j.internal.org.json.JSONException
Throws:
twitter4j.internal.org.json.JSONException

createCategoriesList

public static ResponseList<Category> createCategoriesList(twitter4j.internal.http.HttpResponse res)
                                                   throws TwitterException
Throws:
TwitterException

createCategoriesList

public static ResponseList<Category> createCategoriesList(twitter4j.internal.org.json.JSONArray array,
                                                          twitter4j.internal.http.HttpResponse res)
                                                   throws TwitterException
Throws:
TwitterException

getName

public java.lang.String getName()
Specified by:
getName in interface Category

getSlug

public java.lang.String getSlug()
Specified by:
getSlug in interface Category

getSize

public int getSize()
Specified by:
getSize in interface Category
Returns:
Since:
Twitter4J 2.1.9

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