endian11
2019-06-05 05015fe5917ef89f7adc650230dc431eb03b1043
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.anyun.exam.lib;
 
import android.content.Context;
 
/**
 * MyApplication2
 * Created by lzw on 2019/6/5. 13:15:20
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
class AYSdk {
    //安运驾考系统 sdk 单例模式
    private  volatile static  AYSdk ourInstance = null;
 
    static AYSdk getInstance() {
        if (ourInstance == null){
            synchronized (AYSdk.class){
                if (ourInstance == null){
                    ourInstance = new AYSdk();
                }
            }
        }
        return ourInstance;
    }
 
    private AYSdk() {
    }
}