Created
September 21, 2015 04:36
-
-
Save choiseungho/a58b32905366fbc17f3b to your computer and use it in GitHub Desktop.
Enum type을 이용한 싱글톤 패턴
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
package com.tistory.seungdols.effetive.ex_1; | |
/** | |
* @PROJECT effectiveJava | |
* @PACKAGE com.tistory.seungdols.effetive.ex_1 | |
* @WRITTER Administrator | |
* @DATE 2015-09-21 | |
* @HISTORY | |
* @DISCRIPT | |
*/ | |
public enum Singleton{ | |
INSTANCE; | |
public void execute(){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment