Skip to content

This is a convenience class written in Java for Android architecture components to be able to aggregate data from multiple sources into one destination with conditions and conditionally merge different streams

Notifications You must be signed in to change notification settings

ARahimKhan/AggregatorLiveData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

AggregatorLiveData

This is a convenience class written in Java for Android architecture components to be able to aggregate data from multiple sources into one destination with safety checks and conditionally merge different streams at anytime you want. It supports defining custom strategies to merge data with already existing data of the same type or from the same stream, hold data, define types of data and to merge data from different streams very flexibly

The default behaviour of a mediator live data on android is to notify observers everytime data changes and you will need to make sub calsses of mediator live data everytime you need to be able to aggregate cumulatively or according to a custom strategy. Sometimes this is undesirable and you can use this class to help you.

Almost fully generic and can be suited to any general task where you need to merge data of possibly different types from separate asynchronous streams into one single destination LiveData.

About

This is a convenience class written in Java for Android architecture components to be able to aggregate data from multiple sources into one destination with conditions and conditionally merge different streams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages