package Ġcom . tri pl 3 dev . pretty ListView . base Adapter Ċ Ċ import Ġcom . tri pl 3 dev . pretty ListView . pagination . Pagination Builder ĊĊ Ċ class ĠAdapter Builder < T > Ġinternal Ġconstructor ( val ĠlistView : Ġandroidx . recyclerview . widget . RecyclerView ) Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġholder : ĠMain Holder Interface < T > ĊĠĠĠ Ġinternal Ġvar Ġpagination Builder : ĠPagination Builder < T >? Ġ= Ġnull ĊĠĠĠ Ġinternal Ġfun Ġis Pag inated () Ġ= Ġpagination Builder Ġ!= Ġnull ĊĊĊĠĠĠ Ġfun Ġset Adapter ( holder Interface : ĠMain Holder Interface < T >): ĠAdapter Builder < T > Ġ{ ĊĠĠĠĠĠĠĠ Ġholder Ġ= Ġholder Interface ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġadapter Done (): ĠBase ListAdapter < T > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠBase ListAdapter ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġhas Pag inated (): ĠPagination Builder < T > Ġ{ ĊĠĠĠĠĠĠĠ Ġpagination Builder Ġ= ĠPagination Builder ( this ) ĊĠĠĠĠĠĠĠ Ġreturn Ġpagination Builder !! ĊĠĠĠ Ġ} ĊĊ Ċ }