本文整理了Java中com.badlogic.gdx.utils.Json.ignoreUnknownField()
方法的一些代码示例,展示了Json.ignoreUnknownField()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json.ignoreUnknownField()
方法的具体详情如下:
包路径:com.badlogic.gdx.utils.Json
类名称:Json
方法名:ignoreUnknownField
[英]Called for each unknown field name encountered by #readFields(Object,JsonValue) when #ignoreUnknownFieldsis false to determine whether the unknown field name should be ignored.
[中]当#ignoreUnknownfields为false时,为#readFields(Object,JsonValue)遇到的每个未知字段名调用,以确定是否应忽略未知字段名。
代码示例来源:origin: libgdx/libgdx
if (metadata == null) {
if (child.name.equals(typeName)) continue;
if (ignoreUnknownFields || ignoreUnknownField(type, child.name)) {
if (debug) System.out.println("Ignoring unknown field: " + child.name + " (" + type.getName() + ")");
continue;
代码示例来源:origin: libgdx/libgdx
if (metadata == null) {
if (child.name.equals(typeName)) continue;
if (ignoreUnknownFields || ignoreUnknownField(type, child.name)) {
if (debug) System.out.println("Ignoring unknown field: " + child.name + " (" + type.getName() + ")");
continue;
代码示例来源:origin: com.badlogicgames.gdx/gdx
if (metadata == null) {
if (child.name.equals(typeName)) continue;
if (ignoreUnknownFields || ignoreUnknownField(type, child.name)) {
if (debug) System.out.println("Ignoring unknown field: " + child.name + " (" + type.getName() + ")");
continue;
内容来源于网络,如有侵权,请联系作者删除!