Created
October 28, 2020 10:30
-
-
Save lofidewanto/d530466afaf9db7b4878aa3e70fd41dc to your computer and use it in GitHub Desktop.
IndexedDB with Java Patterns - Repository.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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