All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weicoder.common.constants.SystemConstants Maven / Gradle / Ivy

There is a newer version: 3.6.2
Show newest version
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