Skip to content

Instantly share code, notes, and snippets.

@yemyatthu1990
Last active February 9, 2017 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yemyatthu1990/a6e8bdfac792998cd719ee39f34c7085 to your computer and use it in GitHub Desktop.
Save yemyatthu1990/a6e8bdfac792998cd719ee39f34c7085 to your computer and use it in GitHub Desktop.
public class TownshipLocalDataStore implements TownshipDataStore {
private final TownshipCache townshipCache;
TownshipLocalDataStore(TownshipCache townshipCache){
this.townshipCache = townshipCache;
}
//Return a list of townships from DB
@Override
public Observable<List<TownshipEntity>> townships() {
return townshipCache.get();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment