Class PagedLiveData.PageRequestBuilder
- java.lang.Object
-
- com.abubusoft.kripton.androidx.livedata.PagedLiveData.PageRequestBuilder
-
- Enclosing class:
- PagedLiveData<T>
public class PagedLiveData.PageRequestBuilder extends Object
This builder allows you to manipulate page request object, changing some its attributes and invoke an unique update to live date.- Author:
- xcesco
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Applies all the change you defined with this builder.PagedLiveData.PageRequestBuilderoffset(int value)change offsetPagedLiveData.PageRequestBuilderpage(int value)change pagePagedLiveData.PageRequestBuilderpageSize(int value)change pageSize
-
-
-
Method Detail
-
offset
public PagedLiveData.PageRequestBuilder offset(int value)
change offset- Parameters:
value-- Returns:
-
page
public PagedLiveData.PageRequestBuilder page(int value)
change page- Parameters:
value-- Returns:
-
pageSize
public PagedLiveData.PageRequestBuilder pageSize(int value)
change pageSize- Parameters:
value-- Returns:
-
apply
public void apply()
Applies all the change you defined with this builder. Backend livedata will be updated. If nothing changes, no livedata update will be performed.
-
-