twitter4j
Class Paging

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

public final class Paging
extends java.lang.Object
implements java.io.Serializable

Controls pagination.
It is possible to use the same Paging instance in a multi-threaded context only if the instance is treated immutably.
But basically instance of this class is NOT thread safe. A client should instantiate Paging class per thread.

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

Constructor Summary
Paging()
           
Paging(int page)
           
Paging(int page, int count)
           
Paging(int page, int count, long sinceId)
           
Paging(int page, int count, long sinceId, long maxId)
           
Paging(int page, long sinceId)
           
Paging(long sinceId)
           
 
Method Summary
 Paging count(int count)
           
 boolean equals(java.lang.Object o)
           
 int getCount()
           
 long getMaxId()
           
 int getPage()
           
 long getSinceId()
           
 int hashCode()
           
 Paging maxId(long maxId)
           
 void setCount(int count)
           
 void setMaxId(long maxId)
           
 void setPage(int page)
           
 void setSinceId(long sinceId)
           
 Paging sinceId(long sinceId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Paging

public Paging()

Paging

public Paging(int page)

Paging

public Paging(long sinceId)

Paging

public Paging(int page,
              int count)

Paging

public Paging(int page,
              long sinceId)

Paging

public Paging(int page,
              int count,
              long sinceId)

Paging

public Paging(int page,
              int count,
              long sinceId,
              long maxId)
Method Detail

getPage

public int getPage()

setPage

public void setPage(int page)

getCount

public int getCount()

setCount

public void setCount(int count)

count

public Paging count(int count)

getSinceId

public long getSinceId()

setSinceId

public void setSinceId(long sinceId)

sinceId

public Paging sinceId(long sinceId)

getMaxId

public long getMaxId()

setMaxId

public void setMaxId(long maxId)

maxId

public Paging maxId(long maxId)

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 © 2010. All Rights Reserved.