public static Type getType ( ) { String osName = System . getProperty ( "os.name" ) . toLowerCase ( ) ; if ( osName . contains ( "windows" ) ) { return Type . WINDOWS ; } else if ( osName . contains ( "linux" ) ) { return Type . LINUX ; } else if ( osName . contains ( "mac" ) ) { return Type . MAC ; } return Type . UNKNOWN ; }
Get OS type .