Class BasePage<T>

  • Direct Known Subclasses:
    SyncPage

    public abstract class BasePage<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BasePage​(boolean hasNext, java.util.List<T> items, java.lang.Object response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<T> getItems()  
      <R> java.util.Optional<R> getResponse()
      Returns the full response object for accessing pagination metadata like cursor tokens.
      boolean hasNext()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasePage

        public BasePage​(boolean hasNext,
                        java.util.List<T> items,
                        java.lang.Object response)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • getItems

        public java.util.List<T> getItems()
      • getResponse

        public <R> java.util.Optional<R> getResponse()
        Returns the full response object for accessing pagination metadata like cursor tokens.
        Returns:
        Optional containing the response, or empty if unavailable