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; } }