feiyu02
2020-09-01 43242c8e7915b968bb7a6f3f22bded7704f0e40f
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
29
30
31
32
33
34
35
36
37
package cn.flightfeather.thirdapp.util;
 
public class GlobalConfig {
 
    private static GlobalConfig instance;
 
    private int versionCode;
    private String versionName;
 
    private GlobalConfig() {
    }
 
    public synchronized static GlobalConfig getInstance() {
        if (instance == null) {
            instance = new GlobalConfig();
        }
        return instance;
    }
 
    public int getVersionCode() {
        return versionCode;
    }
 
    public GlobalConfig setVersionCode(int versionCode) {
        this.versionCode = versionCode;
        return this;
    }
 
    public String getVersionName() {
        return versionName;
    }
 
    public GlobalConfig setVersionName(String versionName) {
        this.versionName = versionName;
        return this;
    }
}