Guest User

Untitled

a guest
Jan 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class AbTestFactory {
  2. private volatile static AbTestFactory instance;
  3.  
  4. private AbTestFactory () {}
  5.  
  6. public static AbTestFactory getInstance () {
  7. if (this.instance == null) {
  8. synchronized(AbTestFactory.class) {
  9. if (this.instance == null) {
  10. return new AbTestFactory();
  11. }
  12. }
  13. }
  14. return this.instance;
  15. }
  16. }
Add Comment
Please, Sign In to add comment