elemental.json.JsonObject.getBoolean()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(284)

本文整理了Java中elemental.json.JsonObject.getBoolean()方法的一些代码示例,展示了JsonObject.getBoolean()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonObject.getBoolean()方法的具体详情如下:
包路径:elemental.json.JsonObject
类名称:JsonObject
方法名:getBoolean

JsonObject.getBoolean介绍

[英]Return the element (uncoerced) as a boolean. If the type is not a boolean, this can result in runtime errors.
[中]以布尔值形式返回元素(未编码)。如果类型不是布尔值,则可能导致运行时错误。

代码示例

代码示例来源:origin: com.vaadin/flow-server

boolean matchesFilter(JsonObject eventData) {
  if (filter == null) {
    // No filter: always matches
    return true;
  }
  if (eventData == null) {
    // No event data: cannot match the filter
    return false;
  }
  return eventData.getBoolean(filter);
}

代码示例来源:origin: com.vaadin/vaadin-server

.getBoolean(ApplicationConstants.RESYNCHRONIZE_ID);
} else {
  resynchronize = false;

代码示例来源:origin: com.googlecode.gwtquery/gwtquery

if (clz.equals(Boolean.class) || clz == Boolean.TYPE) {
 try {
  return obj != null ? obj.getBoolean(attr) : arr.getBoolean(idx);
 } catch (Exception e) {
  return Boolean.FALSE;

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

callback = new OpenEditorCallbackImpl();
final boolean active = file.hasKey("ACTIVE") && file.getBoolean("ACTIVE");

代码示例来源:origin: com.vaadin/flow-server

.getBoolean(ApplicationConstants.RESYNCHRONIZE_ID);
} else {
  resynchronize = false;

代码示例来源:origin: com.vaadin/hummingbird-server

.getBoolean(ApplicationConstants.RESYNCHRONIZE_ID);
} else {
  resynchronize = false;

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

captionAsHtml = itemJson.getBoolean("captionAsHtml");
    && itemJson.getBoolean("expanded")) {
  menuContainerWidget.setExpanded(true);

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

if (partStackState.hasKey(HIDDEN_STATE) && partStackState.getBoolean(HIDDEN_STATE)) {

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public Promise<Void> loadState(@NotNull JsonObject state) {
 if (state.hasKey(SHOW_HIDDEN_FILES)) {
  projectExplorer.showHiddenFiles(state.getBoolean(SHOW_HIDDEN_FILES));

相关文章