MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / get

Method get

ij/src/main/java/ij/Prefs.java:288–294  ·  view source on GitHub ↗

Uses the keyword key to retrieve a string from the preferences file. Returns defaultValue if the key is not found.

(String key, String defaultValue)

Source from the content-addressed store, hash-verified

286 preferences file. Returns <code>defaultValue</code> if the key
287 is not found. */
288 public static String get(String key, String defaultValue) {
289 String value = ijPrefs.getProperty(KEY_PREFIX+key);
290 if (value == null)
291 return defaultValue;
292 else
293 return value;
294 }
295
296 /** Uses the keyword <code>key</code> to retrieve a number from the
297 preferences file. Returns <code>defaultValue</code> if the key

Callers 15

loadMethod · 0.95
configureProxyMethod · 0.95
CommandFinderClass · 0.95
rectToolOptionsMethod · 0.95
showDialogMethod · 0.95
ProxySettingsClass · 0.95
RoiEnlargerClass · 0.95
saveMPTableMethod · 0.95
BatchProcesserClass · 0.95
addPanelsMethod · 0.95
BatchProcessorClass · 0.95

Calls 3

valueOfMethod · 0.80
getPropertyMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected