
org.openl.util.OS Maven / Gradle / Ivy
The newest version!
package org.openl.util;
import java.util.Locale;
/**
* Util class to get operating system information.
*/
public class OS {
private OS() {
}
private static final String OS = System.getProperty("os.name", "unknown").toLowerCase(Locale.ROOT);
public static boolean isWindows() {
return OS.contains("win");
}
public static boolean isMac() {
return OS.contains("mac");
}
public static boolean isUnix() {
return OS.contains("nux");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy