/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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())); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }
/** * 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)); } }