本文整理了Java中org.codehaus.jackson.node.ArrayNode.insertNull()
方法的一些代码示例,展示了ArrayNode.insertNull()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ArrayNode.insertNull()
方法的具体详情如下:
包路径:org.codehaus.jackson.node.ArrayNode
类名称:ArrayNode
方法名:insertNull
暂无
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Integer value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.intValue()));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Boolean value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, booleanNode(value.booleanValue()));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Float value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.floatValue()));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Double value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.doubleValue()));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Long value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.longValue()));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Method for setting value of a field to specified String value.
*/
public void insert(int index, String v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, textNode(v));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Method for setting value of a field to specified binary value
*/
public void insert(int index, byte[] v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, binaryNode(v));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Method that will construct a POJONode and add it at the end
* of this array node.
*/
public void insertPOJO(int index, Object value)
{
if (value == null) {
insertNull(index);
} else {
_insert(index, POJONode(value));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-asl
/**
* Method for setting value of a field to specified numeric value.
*/
public void insert(int index, BigDecimal v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, numberNode(v));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Long value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.longValue()));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Integer value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.intValue()));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Float value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.floatValue()));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Double value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, numberNode(value.doubleValue()));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Alternative method that we need to avoid bumping into NPE issues
* with auto-unboxing.
*
* @since 1.9
*/
public void insert(int index, Boolean value) {
if (value == null) {
insertNull(index);
} else {
_insert(index, booleanNode(value.booleanValue()));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Method for setting value of a field to specified numeric value.
*/
public void insert(int index, BigDecimal v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, numberNode(v));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Method for setting value of a field to specified String value.
*/
public void insert(int index, String v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, textNode(v));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Method that will construct a POJONode and add it at the end
* of this array node.
*/
public void insertPOJO(int index, Object value)
{
if (value == null) {
insertNull(index);
} else {
_insert(index, POJONode(value));
}
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Method for setting value of a field to specified binary value
*/
public void insert(int index, byte[] v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, binaryNode(v));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-lgpl
/**
* Method for setting value of a field to specified String value.
*/
public void insert(int index, String v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, textNode(v));
}
}
代码示例来源:origin: org.codehaus.jackson/jackson-mapper-lgpl
/**
* Method for setting value of a field to specified numeric value.
*/
public void insert(int index, BigDecimal v) {
if (v == null) {
insertNull(index);
} else {
_insert(index, numberNode(v));
}
}
内容来源于网络,如有侵权,请联系作者删除!