Class GithubPage<T>

  • Type Parameters:
    T - resource type
    All Implemented Interfaces:
    AsyncPage<T>, java.lang.Iterable<T>

    public class GithubPage<T>
    extends java.lang.Object
    implements AsyncPage<T>
    Async page implementation for github resources
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AsyncPage<T> clone()
      Clone page object.
      java.util.concurrent.CompletableFuture<java.lang.Boolean> hasNextPage()
      Has next page.
      java.util.Iterator<T> iterator()
      java.util.concurrent.CompletableFuture<AsyncPage<T>> nextPage()
      Next page.
      java.util.concurrent.CompletableFuture<Pagination> pagination()
      Pagination data.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • pagination

        public java.util.concurrent.CompletableFuture<Pagination> pagination()
        Pagination data.
        Specified by:
        pagination in interface AsyncPage<T>
        Returns:
        pagination object
      • nextPage

        public java.util.concurrent.CompletableFuture<AsyncPage<T>> nextPage()
        Next page.
        Specified by:
        nextPage in interface AsyncPage<T>
        Returns:
        page
      • hasNextPage

        public java.util.concurrent.CompletableFuture<java.lang.Boolean> hasNextPage()
        Has next page.
        Specified by:
        hasNextPage in interface AsyncPage<T>
        Returns:
        true or false
      • clone

        public AsyncPage<T> clone()
        Clone page object.
        Specified by:
        clone in interface AsyncPage<T>
        Overrides:
        clone in class java.lang.Object
        Returns:
        new page object
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>