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

tk.hongkailiu.test.app.util.Env Maven / Gradle / Ivy

The newest version!
package tk.hongkailiu.test.app.util;

public class Env {

    private int production;

    public static boolean isWindows() {
        return System.getProperty("os.name").toLowerCase().indexOf("windows") != -1;
    }

    public static boolean isLinux() {
        return System.getProperty("os.name").toLowerCase().indexOf("linux") != -1;
    }

    public int getProduction() {
        return production;
    }

    public void setProduction(int production) {
        this.production = production;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy