Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. private static ${enclosing_type} instance;
  2.  
  3. private ${enclosing_type}(){}
  4.  
  5. public static ${enclosing_type} getInstance(){
  6. if(null == instance){
  7. instance = new ${enclosing_type}();
  8. }
  9. return instance;
  10. }
Add Comment
Please, Sign In to add comment