Skip navigation links
A B C D F G L O R S U W 

A

add(Repository<T>, RepositoryPresenter<T>) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Specifies that the RepositoryAdapter being built should present the given repository next (after all previously added repositories, items and static layouts), using the given presenter for any presentation logic.
addAdditionalObservable(Observable) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Specifies that the RepositoryAdapter being built should also observe the given observable during its active time (between RepositoryAdapter.startObserving() and RepositoryAdapter.stopObserving()), in addition to the repositories added via RepositoryAdapter.Builder.add(com.google.android.agera.Repository<T>, com.google.android.agera.rvadapter.RepositoryPresenter<T>).
addItem(T, RepositoryPresenter<T>) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Specifies that the RepositoryAdapter being built should present the given static item next (after all previously added repositories, static items and layouts), using the given presenter for any presentation logic.
addLayout(LayoutPresenter) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Specifies that the RepositoryAdapter being built should present a static layout with the given LayoutPresenter next (after all previously added repositories, static items and layouts).

B

bind(View) - Method in class com.google.android.agera.rvadapter.LayoutPresenter
Updates the view to present.
bind(T, int, RecyclerView.ViewHolder) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Binds the index-th item to present the data into the item view held in the given holder.
bindCollectionWith(Binder<TCol, View>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Specifies a Binder to bind the whole collection (the repository value) to an inflated item view.
bindWith(Receiver<View>) - Method in class com.google.android.agera.rvadapter.LayoutPresenters.Builder
 
bindWith(Binder<T, View>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Specifies a Binder to bind a single item in the Repository to an inflated View.
build() - Method in class com.google.android.agera.rvadapter.LayoutPresenters.Builder
 
build() - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Builds the RepositoryAdapter that presents the provided repositories in order and observes the repositories as well as any additional observables.

C

com.google.android.agera.rvadapter - package com.google.android.agera.rvadapter
 

D

diff() - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPItemCompile
Enables fine-grained events catered for the single-item special case, where the item is considered always the same.
diffWith(Function<? super TVal, ?>, boolean) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPDiff
Specifies a key extractor Function to enable generating fine-grained events using DiffUtil.

F

forCollection(Function<TCol, List<T>>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Creates a RepositoryPresenter for a Repository of a type that can be converted to a List of items using the converter.
forCollection(Function<TColE, List<TVal>>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPTypedCollectionCompile
Creates a RepositoryPresenter for a Repository of a type that can be converted to a List of items using the converter.
forItem() - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPItemCompile
Creates a RepositoryPresenter for a Repository of a single item that will be bound to the RecyclerView.
forList() - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Creates a RepositoryPresenter for a Repository of a List where each item in the List will be bound to the RecyclerView.
forResult() - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPItemCompile
Creates a RepositoryPresenter for a Repository of a Result where the item in the Result will be bound to the RecyclerView if present.
forResultList() - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Creates a RepositoryPresenter for a Repository of a Result containing a List where each item in the List will be bound to the RecyclerView.

G

getItemCount() - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 
getItemCount(T) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Returns the number of adapter items needed to present the data.
getItemId(int) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 
getItemId(T, int) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Returns the stable ID for the index-th item to present the data.
getItemViewType(int) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 
getLayoutResId() - Method in class com.google.android.agera.rvadapter.LayoutPresenter
Returns the layout resource ID to inflate.
getLayoutResId(T, int) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Returns the layout resource ID to inflate the view for the index-th item to present the data.
getUpdates(T, T, ListUpdateCallback) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Produces a sequence of fine-grained events (addition, removal, changing and moving of individual items) to the given listUpdateCallback capturing the changes of data to be presented by this RepositoryPresenter, in response to an update.

L

layout(int) - Static method in class com.google.android.agera.rvadapter.LayoutPresenters
Creates a simple LayoutPresenter for the layoutId.
layout(int) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPLayout
Specifies the layoutId for the layout to inflate for each item in the associated Repository.
layoutForItem(Function<TVal, Integer>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPLayout
Specifies a Function to return a layoutId that be inflated given the item in the Repository.
LayoutPresenter - Class in com.google.android.agera.rvadapter
Contains logic to present a layout in a RepositoryAdapter.
LayoutPresenter() - Constructor for class com.google.android.agera.rvadapter.LayoutPresenter
 
layoutPresenterFor(int) - Static method in class com.google.android.agera.rvadapter.LayoutPresenters
Starts the creation of a LayoutPresenter.
LayoutPresenters - Class in com.google.android.agera.rvadapter
Contains a basic implementation of LayoutPresenter.
LayoutPresenters.Builder - Class in com.google.android.agera.rvadapter
 

O

onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
Creates a new view holder holding the view inflated from the provided layoutResourceId.
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
 

R

recycle(View) - Method in class com.google.android.agera.rvadapter.LayoutPresenter
Called when the given view is recycled.
recycle(RecyclerView.ViewHolder) - Method in class com.google.android.agera.rvadapter.RepositoryPresenter
Called when the given holder is recycled.
recycleWith(Receiver<View>) - Method in class com.google.android.agera.rvadapter.LayoutPresenters.Builder
 
recycleWith(Receiver<View>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Specifies a Receiver to recycle the View.
RepositoryAdapter - Class in com.google.android.agera.rvadapter
A specialized RecyclerView.Adapter that presents the data from a sequence of Repositories, mixed with optional static items and static layouts.
RepositoryAdapter(RepositoryAdapter.Builder) - Constructor for class com.google.android.agera.rvadapter.RepositoryAdapter
 
repositoryAdapter() - Static method in class com.google.android.agera.rvadapter.RepositoryAdapter
RepositoryAdapter.Builder - Class in com.google.android.agera.rvadapter
RepositoryPresenter<T> - Class in com.google.android.agera.rvadapter
Contains logic to present the content of a Repository.
RepositoryPresenter() - Constructor for class com.google.android.agera.rvadapter.RepositoryPresenter
 
RepositoryPresenterCompilerStates - Interface in com.google.android.agera.rvadapter
Container of the compiler state interfaces supporting the creation of a RepositoryPresenter.
RepositoryPresenterCompilerStates.RPDiff<TVal,TRet> - Interface in com.google.android.agera.rvadapter
Compiler state to optionally enable fine-grained events using DiffUtil.
RepositoryPresenterCompilerStates.RPItemCompile<TVal> - Interface in com.google.android.agera.rvadapter
Compiler state to compile for the specified item container type of the associated Repository.
RepositoryPresenterCompilerStates.RPLayout<TVal,TRet> - Interface in com.google.android.agera.rvadapter
Compiler state to specify what layout to use.
RepositoryPresenterCompilerStates.RPMain<T> - Interface in com.google.android.agera.rvadapter
Compiler state to specify how to bind the Repository item to the view inflated by the layout.
RepositoryPresenterCompilerStates.RPTypedCollectionCompile<TVal,TCol> - Interface in com.google.android.agera.rvadapter
Compiler state to compile for the generic collection container type of the associated Repository.
repositoryPresenterOf(Class<T>) - Static method in class com.google.android.agera.rvadapter.RepositoryPresenters
Starts the creation of a compiled RepositoryPresenter.
RepositoryPresenters - Class in com.google.android.agera.rvadapter
Contains a basic implementation of RepositoryPresenter to present the content of a Repository.

S

stableId(long) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Specifies a stableId for the given item.
stableIdForItem(Function<? super T, Long>) - Method in interface com.google.android.agera.rvadapter.RepositoryPresenterCompilerStates.RPMain
Specifies a Function providing a stable id for the given item.
startObserving() - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
Starts observing any Repository and additional Observables added.
stopObserving() - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
Stops observing any Repository and additional Observables added.

U

update() - Method in class com.google.android.agera.rvadapter.RepositoryAdapter
Goes through all RepositoryAdapters associated with any added Repository to discover and notify of any data changes.

W

whileResumed(Activity) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Builds the RepositoryAdapter that presents the provided repositories in order and observes the repositories as well as any additional observables while the provided Activity is resumed (between Activity.onResume() and Activity.onPause()).
whileStarted(Activity) - Method in class com.google.android.agera.rvadapter.RepositoryAdapter.Builder
Builds the RepositoryAdapter that presents the provided repositories in order and observes the repositories as well as any additional observables while the provided Activity is started (between (between Activity.onStart() and Activity.onStop()).
A B C D F G L O R S U W 
Skip navigation links