public Decimal deepCopy() { return new Decimal(this); }
/** * Get the {@link Decimal} for given non-null {@link BigDecimal} value. * * @param decimal * the {@link BigDecimal} to convert to {@link Decimal} * * @throws NullPointerException * if decimal argument is null */ public static Decimal getDecimal(BigDecimal decimal) { decimal = adjustScale(decimal); BigInteger bi = decimal.unscaledValue(); return new Decimal((byte)bi.signum(), decimal.scale(), ByteBuffer.wrap(bi .abs().toByteArray())); }
this.decimal_val = new Decimal(other.decimal_val);
case 10: // DECIMAL_VAL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true);
struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true);
struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true);
case 9: // DECIMAL_VAL if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.decimal_val = new Decimal(); struct.decimal_val.read(iprot); struct.setDecimal_valIsSet(true);
this.decimal_val = new Decimal(other.decimal_val);