Package twitter4j.v1

Class Paging

java.lang.Object
twitter4j.v1.Paging
All Implemented Interfaces:
Serializable

public final class Paging extends Object implements Serializable
Controls pagination.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    count
    final long
    max id
    final int
    page
    final long
    since id
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Paging
    count(int count)
    creates a new Paging instance with the specified count
    boolean
     
    int
     
    @NotNull Paging
    maxId(long maxId)
    creates a new Paging instance with the specified maxId
    static @NotNull Paging
    ofCount(int count)
    creates a new Paging instance with the specified count
    static @NotNull Paging
    ofMaxId(long maxId)
    creates a new Paging instance with the specified maxId
    static @NotNull Paging
    ofPage(int page)
     
    static @NotNull Paging
    ofSinceId(long sinceId)
    creates a new Paging instance with the specified sinceId
    @NotNull Paging
    sinceId(long sinceId)
    creates a new Paging instance with the specified sinceId
     
    @NotNull Paging
    withPage(int page)
    creates a new Paging instance with the specified page

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • page

      public final int page
      page
    • count

      public final int count
      count
    • sinceId

      public final long sinceId
      since id
    • maxId

      public final long maxId
      max id
  • Method Details

    • ofPage

      @NotNull public static @NotNull Paging ofPage(int page)
      Parameters:
      page - page
      Returns:
      Paging instance
    • withPage

      @NotNull public @NotNull Paging withPage(int page)
      creates a new Paging instance with the specified page
      Parameters:
      page - page
      Returns:
      new Paging instance
    • ofCount

      @NotNull public static @NotNull Paging ofCount(int count)
      creates a new Paging instance with the specified count
      Parameters:
      count - count
      Returns:
      new Paging instance
    • count

      @NotNull public @NotNull Paging count(int count)
      creates a new Paging instance with the specified count
      Parameters:
      count - count
      Returns:
      new Paging instance
    • ofSinceId

      @NotNull public static @NotNull Paging ofSinceId(long sinceId)
      creates a new Paging instance with the specified sinceId
      Parameters:
      sinceId - page
      Returns:
      new Paging instance
    • sinceId

      @NotNull public @NotNull Paging sinceId(long sinceId)
      creates a new Paging instance with the specified sinceId
      Parameters:
      sinceId - page
      Returns:
      new Paging instance
    • ofMaxId

      @NotNull public static @NotNull Paging ofMaxId(long maxId)
      creates a new Paging instance with the specified maxId
      Parameters:
      maxId - maxId
      Returns:
      new Paging instance
    • maxId

      @NotNull public @NotNull Paging maxId(long maxId)
      creates a new Paging instance with the specified maxId
      Parameters:
      maxId - maxId
      Returns:
      new Paging instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object