/** * Method for setting value of a field to specified numeric value. */ public void add(int v) { _add(numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void add(float v) { _add(numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void add(double v) { _add(numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void insert(int index, int v) { _insert(index, numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void insert(int index, float v) { _insert(index, numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void add(long v) { _add(numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void insert(int index, long v) { _insert(index, numberNode(v)); }
/** * Method for setting value of a field to specified numeric value. */ public void insert(int index, double v) { _insert(index, numberNode(v)); }
/** * Alternative method that we need to avoid bumping into NPE issues * with auto-unboxing. * * @since 1.9 */ public void add(Long value) { if (value == null) { addNull(); } else { _add(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, 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, 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 add(Integer value) { if (value == null) { addNull(); } else { _add(numberNode(value.intValue())); } }
/** * Alternative method that we need to avoid bumping into NPE issues * with auto-unboxing. * * @since 1.9 */ public void add(Float value) { if (value == null) { addNull(); } else { _add(numberNode(value.floatValue())); } }
/** * Alternative method that we need to avoid bumping into NPE issues * with auto-unboxing. * * @since 1.9 */ public void add(Double value) { if (value == null) { addNull(); } else { _add(numberNode(value.doubleValue())); } }
/** * 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 numeric value. */ public void add(BigDecimal v) { if (v == null) { addNull(); } else { _add(numberNode(v)); } }
/** * Method for setting value of a field to specified numeric value. */ public void insert(int index, float v) { _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())); } }