Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cantaa.util.type;
 
Wrappes an amount to represent a money amount with 4 decimal digits

Author(s):
Hans Lesmeister
 
 public class Money4 extends Money
   private static final int DECIMAL_PLACES = 4;
   public Money4()
   {
      super(null);
   }
   public Money4(String value)
   {
      super(new BigDecimal(value), );
   }
   public Money4(double value)
   {
      super(new BigDecimal(value), );
   }
   public Money4(BigDecimal amount)
   {
      super(amount);
   }
//   public Money4 createInstance(BigDecimal amount)
//   {
//      return new Money4(amount);
//   }
New to GrepCode? Check out our FAQ X