Davor Maric
05/29/2018, 2:08 PMsave
. Object is instantiated upon runtime. setDate
& setDetails
pretty much updates the already instantiated object.
The whole point of Repository is a set of methods which can be implemented to variety different datasources. How is it going to be implemented depends on a guy who is coding data layer.
Repository belongs to domain layer and acts like a business logic together with use cases and domain models
Repository implementation belongs to data layer together with data models & data sources (room,realm,retrofit,custom wrappers etc..)