MCPcopy Index your code
hub / github.com/processing/processing / getInteger

Method getInteger

app/src/processing/app/Preferences.java:306–324  ·  view source on GitHub ↗
(String attribute /*, int defaultValue*/)

Source from the content-addressed store, hash-verified

304
305
306 static public int getInteger(String attribute /*, int defaultValue*/) {
307 return Integer.parseInt(get(attribute));
308
309 /*
310 String value = get(attribute, null);
311 if (value == null) return defaultValue;
312
313 try {
314 return Integer.parseInt(value);
315 } catch (NumberFormatException e) {
316 // ignored will just fall through to returning the default
317 System.err.println("expecting an integer: " + attribute + " = " + value);
318 }
319 return defaultValue;
320 //if (value == null) return defaultValue;
321 //return (value == null) ? defaultValue :
322 //Integer.parseInt(value);
323 */
324 }
325
326
327 static public void setInteger(String key, int value) {

Callers 15

sendArgumentsMethod · 0.95
updateAppearanceMethod · 0.95
pasteMethod · 0.95
applyFrameMethod · 0.95
showFrameMethod · 0.95
ChangeDetectorClass · 0.95
EditorMethod · 0.95
handleIndentOutdentMethod · 0.95
appendMethod · 0.95
renameMethod · 0.95
EditorConsoleMethod · 0.95
updateAppearanceMethod · 0.95

Calls 2

getMethod · 0.95
parseIntMethod · 0.80

Tested by

no test coverage detected