MCPcopy Index your code
hub / github.com/benfry/processing4 / getBoolean

Method getBoolean

app/src/processing/app/Preferences.java:299–315  ·  view source on GitHub ↗
(String attribute)

Source from the content-addressed store, hash-verified

297
298
299 static public boolean getBoolean(String attribute) {
300 String value = get(attribute); //, null);
301 return Boolean.parseBoolean(value);
302
303 /*
304 supposedly not needed, because anything besides 'true'
305 (ignoring case) will just be false.. so if malformed -> false
306 if (value == null) return defaultValue;
307
308 try {
309 return (new Boolean(value)).booleanValue();
310 } catch (NumberFormatException e) {
311 System.err.println("expecting an integer: " + attribute + " = " + value);
312 }
313 return defaultValue;
314 */
315 }
316
317
318 static public void setBoolean(String attribute, boolean value) {

Callers 15

initMethod · 0.95
isAllowedMethod · 0.95
prepareExportFolderMethod · 0.95
handleWelcomeScreenMethod · 0.95
handleOpenPromptMethod · 0.95
handleRenameCodeMethod · 0.95
nameCodeMethod · 0.95
saveAsMethod · 0.95
copyAndLoadMethod · 0.95
removeContributionMethod · 0.95
PdeInputHandlerMethod · 0.95
updateThemeMethod · 0.95

Calls 2

getMethod · 0.95
parseBooleanMethod · 0.80

Tested by

no test coverage detected