twitter4j
Class IDsJSONImpl

java.lang.Object
  extended by twitter4j.TwitterResponseImpl
      extended by twitter4j.IDsJSONImpl
All Implemented Interfaces:
java.io.Serializable, CursorSupport, IDs, TwitterResponse

final class IDsJSONImpl
extends TwitterResponseImpl
implements IDs

A data class representing array of numeric IDs.

Author:
Yusuke Yamamoto - yusuke at mac.com

Field Summary
private  int[] ids
           
private  long nextCursor
           
private  long previousCursor
           
private static long serialVersionUID
           
 
Constructor Summary
private IDsJSONImpl(HttpResponse res)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
(package private) static IDs getBlockIDs(HttpResponse res)
           
(package private) static IDs getFriendsIDs(HttpResponse res)
           
 int[] getIDs()
          
 long getNextCursor()
          
 long getPreviousCursor()
          
 int hashCode()
           
 boolean hasNext()
          
 boolean hasPrevious()
          
 java.lang.String toString()
           
 
Methods inherited from class twitter4j.TwitterResponseImpl
getRateLimitStatus, setRateLimitStatus
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface twitter4j.TwitterResponse
getRateLimitStatus
 

Field Detail

ids

private int[] ids

previousCursor

private long previousCursor

nextCursor

private long nextCursor

serialVersionUID

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

IDsJSONImpl

private IDsJSONImpl(HttpResponse res)
             throws TwitterException
Throws:
TwitterException
Method Detail

getFriendsIDs

static IDs getFriendsIDs(HttpResponse res)
                  throws TwitterException
Throws:
TwitterException

getBlockIDs

static IDs getBlockIDs(HttpResponse res)
                throws TwitterException
Throws:
TwitterException

getIDs

public int[] getIDs()

Specified by:
getIDs in interface IDs

hasPrevious

public boolean hasPrevious()

Specified by:
hasPrevious in interface CursorSupport
Specified by:
hasPrevious in interface IDs

getPreviousCursor

public long getPreviousCursor()

Specified by:
getPreviousCursor in interface CursorSupport
Specified by:
getPreviousCursor in interface IDs

hasNext

public boolean hasNext()

Specified by:
hasNext in interface CursorSupport
Specified by:
hasNext in interface IDs

getNextCursor

public long getNextCursor()

Specified by:
getNextCursor in interface CursorSupport
Specified by:
getNextCursor in interface IDs

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