Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.cantaa.util.type;
 
Represents a Quantity amount

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