
com.weicoder.common.constants.SystemConstants Maven / Gradle / Ivy
package com.weicoder.common.constants;
/**
* 系统常量
* @author WD
*/
public final class SystemConstants {
/** JDK版本 */
public final static String JAVA_VERSION = System.getProperty("java.version");
/** 系统名称 */
public final static String OS_NAME = System.getProperty("os.name");
/** 系统构架 */
public final static String OS_ARCH = System.getProperty("os.arch");
/** 系统版本 */
public final static String OS_VERSION = System.getProperty("os.version");
/** 用户名称 */
public final static String USER_NAME = System.getProperty("user.name");
/** 用户路径 */
public final static String USER_DIR = System.getProperty("user.dir");
/** CPU核心数量 */
public final static int CPU_NUM = Runtime.getRuntime().availableProcessors();
private SystemConstants() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy