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

devutility.internal.system.SystemHelper Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
package devutility.internal.system;

public class SystemHelper {
	// region get new line char

	public static String getNewLineChar() {
		return System.getProperty("line.separator");
	}

	// endregion

	// region get path separator

	public static String getPathSeparator() {
		return System.getProperty("path.separator");
	}

	// endregion

	// region get file separator

	public static String getFileSeparator() {
		return System.getProperty("file.separator");
	}

	// endregion

	// region get processors count

	public static int getProcessorsCount() {
		return Runtime.getRuntime().availableProcessors();
	}

	// endregion

	// region get proper processors count

	public static int getProperProcessorsCount() {
		return getProcessorsCount() * 3 / 4;
	}

	// endregion
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy