Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

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