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

com.luues.util.SystemUtil Maven / Gradle / Ivy

There is a newer version: 1.3.0.5.RELEASE
Show newest version
package com.luues.util;

public class SystemUtil {

    public static String getOsName(){
        return System.getProperty("os.name");
    }

    public static boolean isLinux(){
        if(getOsName().toLowerCase().startsWith("linux")){
            return true;
        }
        return false;
    }

    public static boolean isMac(){
        if(getOsName().toLowerCase().startsWith("mac")){
            return true;
        }
        return false;
    }

    public static boolean isWindows(){
        if(getOsName().toLowerCase().startsWith("window")){
            return true;
        }
        return false;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy