Class PageKey


  • public class PageKey
    extends java.lang.Object
    Key for Firestore pagination. Holds the DocumentSnapshot(s) that bound the page.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageKey​(com.google.firebase.firestore.DocumentSnapshot startAfter, com.google.firebase.firestore.DocumentSnapshot endBefore)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.firebase.firestore.Query getPageQuery​(com.google.firebase.firestore.Query baseQuery, int size)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PageKey

        public PageKey​(@Nullable
                       com.google.firebase.firestore.DocumentSnapshot startAfter,
                       @Nullable
                       com.google.firebase.firestore.DocumentSnapshot endBefore)
    • Method Detail

      • getPageQuery

        @NonNull
        public com.google.firebase.firestore.Query getPageQuery​(@NonNull
                                                                com.google.firebase.firestore.Query baseQuery,
                                                                int size)
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object