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

org.openl.util.OS Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy