Last active
October 14, 2015 08:25
-
-
Save orhanobut/f41b7617f21141284f3e to your computer and use it in GitHub Desktop.
This file contains 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
final class DiskPersistence { | |
private final static DiskPersistence instance = new DiskPersistence(); | |
public static DiskPersistence getInstance() { | |
return instance; | |
} | |
private DiskPersistence() { | |
// prevents to create a new instance | |
} | |
void add(String value){ | |
// save persistent | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment