Skip to content

Instantly share code, notes, and snippets.

@digitalbuddha
Last active January 13, 2017 15:05
Show Gist options
  • Select an option

  • Save digitalbuddha/102c61b28c469d22008704f24786d8ac to your computer and use it in GitHub Desktop.

Select an option

Save digitalbuddha/102c61b28c469d22008704f24786d8ac to your computer and use it in GitHub Desktop.
Store<Books> bookStore = ParsingStoreBuilder.<BufferedSource, Books>builder()
.fetcher(barCode -> api.getSource(barCode.getKey()))
.persister(SourcePersisterFactory.create(context.getFilesDir())
.parser(GsonParserFactory.createSourceParser(gson, Books.class))
.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment