public static boolean getBool ( Properties props , String key , boolean defaultValue ) { String value = props . getProperty ( key ) ; if ( value != null ) { return Boolean . parseBoolean ( value ) ; } else { return defaultValue ; } }
Load a boolean property . If the key is not present returns defaultValue .