/** * Factory method for getting an instance of JSON numeric value * that expresses given 8-bit value */ public NumericNode numberNode(byte v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit integer value */ public NumericNode numberNode(int v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 16-bit integer value */ public NumericNode numberNode(short v) { return IntNode.valueOf(v); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Short value) { return (value == null) ? nullNode() : IntNode.valueOf(value.shortValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Byte value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Integer value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit integer value */ public NumericNode numberNode(int v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 8-bit value */ public NumericNode numberNode(byte v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 16-bit integer value */ public NumericNode numberNode(short v) { return IntNode.valueOf(v); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Short value) { return (value == null) ? nullNode() : IntNode.valueOf(value.shortValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Byte value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Integer value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit integer value */ public NumericNode numberNode(int v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit integer value */ public NumericNode numberNode(int v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of Json numeric value * that expresses given 8-bit value */ public NumericNode numberNode(byte v) { return IntNode.valueOf(v); }
/** * Factory method for getting an instance of Json numeric value * that expresses given 32-bit integer value */ public NumericNode numberNode(int v) { return IntNode.valueOf(v); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Integer value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Byte value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Byte value) { return (value == null) ? nullNode() : IntNode.valueOf(value.intValue()); }
/** * Alternate factory method that will handle wrapper value, which may * be null. * Due to possibility of null, returning type is not guaranteed to be * {@link NumericNode}, but just {@link ValueNode}. * * @since 1.9 */ public ValueNode numberNode(Short value) { return (value == null) ? nullNode() : IntNode.valueOf(value.shortValue()); }