MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getInt

Method getInt

src/main/java/gate/util/OptionsMap.java:69–75  ·  view source on GitHub ↗

If the object stored under key is an Integer then returns its value otherwise returns null. @param key key associated to the value to retrieve @return the associated integer

(Object key)

Source from the content-addressed store, hash-verified

67 * @return the associated integer
68 */
69 public Integer getInt(Object key) {
70 try {
71 return Integer.decode((String) get(key));
72 } catch (Exception e) {
73 return null;
74 }
75 }
76
77 public Integer getInt(Object key, Integer defaultValue) {
78 Integer value = getInt(key);

Callers 4

getPopupMenuOriginMethod · 0.80
initGuiComponentsMethod · 0.80
getComponentToDisplayMethod · 0.80
restoreSettingsMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected