Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static ${enclosing_type} instance;
- private ${enclosing_type}(){}
- public static ${enclosing_type} getInstance(){
- if(null == instance){
- instance = new ${enclosing_type}();
- }
- return instance;
- }
Add Comment
Please, Sign In to add comment