Class AbstractPaginatedData<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPaginatedData​(boolean hasPreviousPage, boolean hasNextPage, java.lang.Iterable<T> data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNextPage()
      Whether or not this is the last page
      boolean hasPreviousPage()
      Whether or not this is the first page
      java.util.Iterator<T> iterator()  
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
    • Constructor Detail

      • AbstractPaginatedData

        public AbstractPaginatedData​(boolean hasPreviousPage,
                                     boolean hasNextPage,
                                     java.lang.Iterable<T> data)
    • Method Detail

      • hasNextPage

        public boolean hasNextPage()
        Description copied from interface: PaginatedData
        Whether or not this is the last page
        Specified by:
        hasNextPage in interface PaginatedData<T>
        Returns:
        true if there is a next page, false otherwise
      • hasPreviousPage

        public boolean hasPreviousPage()
        Description copied from interface: PaginatedData
        Whether or not this is the first page
        Specified by:
        hasPreviousPage in interface PaginatedData<T>
        Returns:
        true if there is a previous page, false otherwise
      • iterator

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