javax.json.JsonObject.values()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(113)

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

JsonObject.values介绍

暂无

代码示例

代码示例来源:origin: org.diirt/vtype-json

@Override
public Collection<JsonValue> values() {
  return json.values();
}

代码示例来源:origin: org.epics/vtype-json

@Override
public Collection<JsonValue> values() {
  return json.values();
}

代码示例来源:origin: amihaiemil/docker-java-api

@Override
public final Collection<JsonValue> values() {
  return this.resource.values();
}

代码示例来源:origin: org.apache.johnzon/johnzon-core

@Override
  public Stream<JsonValue> getValueStream() {
    //X TODO this implementation is very simplistic
    //X I find it unintuitive what the spec intends here
    //X we probably need to improve this
    Event current = current();
    if (current  == Event.START_ARRAY) {
      return getArrayStream();
    }
    if (current  == Event.START_OBJECT) {
      return getObject().values().stream();
    }
    throw new IllegalStateException(current + " doesn't support getValueStream");
  }
}

代码示例来源:origin: apache/johnzon

@Override
  public Stream<JsonValue> getValueStream() {
    //X TODO this implementation is very simplistic
    //X I find it unintuitive what the spec intends here
    //X we probably need to improve this
    Event current = current();
    if (current  == Event.START_ARRAY) {
      return getArrayStream();
    }
    if (current  == Event.START_OBJECT) {
      return getObject().values().stream();
    }
    throw new IllegalStateException(current + " doesn't support getValueStream");
  }
}

代码示例来源:origin: jcabi/jcabi-github

/**
 * Get a list of all file names in the gist.
 * @return File names
 * @throws IOException If there is any I/O problem
 */
public Iterable<String> files() throws IOException {
  final JsonObject array = this.gist.json().getJsonObject("files");
  final Collection<String> files =
    new ArrayList<String>(array.size());
  for (final JsonValue value : array.values()) {
    files.add(JsonObject.class.cast(value).getString("filename"));
  }
  return files;
}
@Override

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

ArrayList<Attribute> attributesList = new ArrayList<>(jsonObject.values().size());

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

ArrayList<Attribute> attributesList = new ArrayList<>(jsonObject.values().size());

相关文章