Skip to content

Instantly share code, notes, and snippets.

@lofidewanto
Created October 28, 2020 10:30
Show Gist options
  • Save lofidewanto/d530466afaf9db7b4878aa3e70fd41dc to your computer and use it in GitHub Desktop.
Save lofidewanto/d530466afaf9db7b4878aa3e70fd41dc to your computer and use it in GitHub Desktop.
IndexedDB with Java Patterns - Repository.java
package com.github.lofi.client;
import java.util.Optional;
import java.util.Set;
interface Repository<T> {
Optional<T> get(String id);
Set<T> get();
void persist(T entity);
void remove(T entity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment