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