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

devutility.internal.base.SystemUtils Maven / Gradle / Ivy

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

import java.util.UUID;

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

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

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

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

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

	public static String getUUID() {
		return UUID.randomUUID().toString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy