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

Method getBoolean

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

If the object stored under key is a Boolean then returns its value otherwise returns false. @param key key associated to the value to retrieve @return the associated boolean

(Object key)

Source from the content-addressed store, hash-verified

110 * @return the associated boolean
111 */
112 public Boolean getBoolean(Object key) {
113 try {
114 return Boolean.valueOf((String) get(key));
115 } catch (Exception e) {
116 return false;
117 }
118 }
119
120 public Boolean getBoolean(Object key, Boolean defaultValue) {
121 try {

Callers 14

runMethod · 0.95
initViewsMethod · 0.95
testAnnotationMergingMethod · 0.80
editMethod · 0.80
FSDirectoryClass · 0.80
charactersActionMethod · 0.80
initGuiComponentsMethod · 0.80
initGuiComponentsMethod · 0.80
initGuiComponentsMethod · 0.80
valueChangedMethod · 0.80
stateChangedMethod · 0.80

Calls 2

getMethod · 0.65
containsKeyMethod · 0.45

Tested by 1

testAnnotationMergingMethod · 0.64