devutility.internal.base.SystemUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devutility.internal Show documentation
Show all versions of devutility.internal Show documentation
Utilities for Java development
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