/** * Factory method for getting an instance of JSON numeric value * that expresses given 64-bit floating point value */ public NumericNode numberNode(double v) { return DoubleNode.valueOf(v); }
public static DoubleNode valueOf(double v) { return new DoubleNode(v); }
@Override public BigInteger getBigIntegerValue() { return getDecimalValue().toBigInteger(); }
case DOUBLE: if ( fieldValue.getClass() == DoubleNode.class ) { return getKettleValue( ( (DoubleNode) fieldValue ).getDoubleValue() ); case FLOAT: if ( fieldValue instanceof NumericNode ) { return getKettleValue( ( (DoubleNode) fieldValue ).getDoubleValue() );
if (from instanceof DoubleNode) return ((DoubleNode)from).getDoubleValue();
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit floating point value */ public NumericNode numberNode(float v) { return DoubleNode.valueOf((double) v); }
&& defaultValue.isTextual()) defaultValue = new DoubleNode(Double.valueOf(defaultValue.getTextValue())); Field f = new Field(fieldName, fieldSchema, fieldDoc, defaultValue, order);
@Override public BigInteger getBigIntegerValue() { return getDecimalValue().toBigInteger(); }
/** * 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(Double value) { return (value == null) ? nullNode() : DoubleNode.valueOf(value.doubleValue()); }
public static DoubleNode valueOf(double v) { return new DoubleNode(v); }
@Override public BigInteger getBigIntegerValue() { return getDecimalValue().toBigInteger(); }
/** * 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(Float value) { return (value == null) ? nullNode() : DoubleNode.valueOf(value.doubleValue()); }
return new LongNode(in.readLong()); case DOUBLE: return new DoubleNode(in.readDouble()); case STRING: return new TextNode(in.readString());
@Override public BigInteger getBigIntegerValue() { return getDecimalValue().toBigInteger(); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 64-bit floating point value */ public NumericNode numberNode(double v) { return DoubleNode.valueOf(v); }
public static DoubleNode valueOf(double v) { return new DoubleNode(v); }
@Override public BigInteger getBigIntegerValue() { return getDecimalValue().toBigInteger(); }
/** * Factory method for getting an instance of JSON numeric value * that expresses given 32-bit floating point value */ public NumericNode numberNode(float v) { return DoubleNode.valueOf((double) v); }
public static DoubleNode valueOf(double v) { return new DoubleNode(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(Float value) { return (value == null) ? nullNode() : DoubleNode.valueOf(value.doubleValue()); }